Hello List,
USING: Director MX, WinXP Pro
DATA STRUCTURE FOR CD-ROM:
Main.dir
<mySlideShows>
<show1>
index.txt
imageXX.png ... imageXX.png
track.wav
<show2> same as show 1 structure
<show3>
<show4>
etc...
<mySlideShows>
I would like to know how some of you deal with sound objects in director. I
have a project much like a slide show presentation that I am doing in
director. This project will list 'x' number of presentations you can watch
in the main menu. Once you've made a choice it will jump to a label where I
plan to put code that dynamically plays the content for the user's choice.
Each presentation will have its own audio track that will have chapter/topic
times and slide times that I will create for them. The UI will display a
list of chapters/topics on the top left, all the slides in another list
underneath that, the active slide on the right side, and an audio controller
underneath the active slide. A user can click on a chapter/topic or a slide
which will load an image and seek to the audio point for that slide
This audio controller is much like QuickTime's controller.
bMode:#cont|#step
bAudio:#on|#off
bPlay/Pause
bPrevSlide
bNextSlide
txtStatus: --reports currentTime/duration, slide x of x, state:0-4
bRewind
bThumb: --tracks currentTime of audio
progressBar: --colored bar that tracks bThumb
I have been testing my audio controller with Director's built in sound
commands because they seemed to be a good fit for this project. Queue(),
play(), pause(), rewind(), playNext(), setplaylist(), getplaylist(), etc.
I issue the command sound(1).queue(myTrackMem), then sound(1).play() and
monitor the sound(1) object in Director's object inspector. My bThumb
behavior tracks sound(1).currentTime and everything else is good, until the
current sound in the sound(1) object reaches its #endTime and disappears.
This is normal I realize, but now any code that tracks the sound(1) object
will break once the sound reaches its duration. I would like the sound(1)
object to stay alive so the user can use my audio controller to rewind,
play, pause, and scrub the audio and get status info displayed like I could
with a quickTime sprite.
Is there another way of tracking audio objects other than converting to
quickTime and using a sprite?
Appreciate any comments/suggestions,
Todd
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL
PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping
with programming Lingo. Thanks!]