Here's another simple approach - cue points. If you are in control
of these sounds, just add a cue point at the beginning of the sound
(or end depending on your design) with a cue point name giving the
name of the sound. Then have an "on cuePassed" handler where you
would do whatever you want to do whenever one of these sounds starts
(or ends). Even if you are not in control of these sounds, you keep
a list of all sounds to play, and could embed a cue point in your one
or two second "spacer" sounds, and on every call to "on cuePassed",
just increment a count as an index into your list to know what sound
is playing (or just finished).
Irv
At 1:24 PM -0700 6/11/01, Buzz Kettles wrote:
>At 9:42 PM +0200 6/11/01, Michael Nadel wrote:
>>Thanks Al, for the idea (below), that is helpful!
>>
>>About my other question, does anyone know while playing a list of queued
>>sounds of any way to determine which member is playing, as it plays?
>
>
>
>> Or at
>>least, is there a way where I can get Director to execute a some handler or
>>command each time it starts a new sound from the list of 32 sounds that were
>>queued? (Like every time a new sound from the list is played, something
>>should light up, or whatever). I'm desperate!
>
>here's a trick (based on am undocumented feature)
>
>Properties accepted by the sound queue() can be anything.
>
>So add a made-up property (such as #which) & assign unique values
>for each element in the queue, and then monitor sound(n).which to
>see when it has changed &/or for what it's current value is.
>
>voil�
>
>-Buzz
>
>>
>>
>>
>>if you have a sound member with 1 second of blank space in it, this should
>>put that between each item in the queue you are constructing.
>>
>>> - Can I control the size of the pause between the sounds?
>>> (For example, if
>>> the 32 sounds are the letters of the ABC, and I want to give the user
>>> control on how fast the letters will be read).
>>
>>have different size space sound members that you use based on the users'
>>choice.
>> i.e "1_sec_space", "500_msec_space", "2_sec_space", etc.
>>
>>
>
>
>[To remove yourself from this list, or to change to digest mode, go to
>http://www.penworks.com/LUJ/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!]
--
Lingo / Director / Shockwave development for all occasions.
(Home-made Lingo cooked up fresh every day just for you.)
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]