Playing Simultaneous Sounds?

Graham Samuel livfoss at mac.com
Wed May 10 06:14:45 EDT 2006


On  Tue, 9 May 2006 16:23:27 -0700 (PDT),  Judy Perry  
<jperryl at ecs.fullerton.edu> wrote:
> I searched the use-list archive via Richard's page but can't come  
> up with
> what I think I remember reading, namely, that you can sorta,  
> kinda,  using
> players, play two or more sounds "simultaneously".
>
> Is it so?  Can anyone point me in the right direction?

this from the RR documentation on 'play':

> You can play multiple movies at once by starting each one of them  
> with the play command.
>
> Movies cannot be played while any tool other than the Browse tool  
> is in use.
>
> If you start playing an audio clip when another one is playing, the  
> first audio clip is stopped, and a playStopped message is sent to  
> the current card. You cannot play two sounds at the same time, nor  
> can you queue a sound while another sound is playing.

In practice, if you stick your sounds into 2 or more players (i.e.  
make your sounds into movies with no visual element), then you can do  
something as simple as

start player "player1"
start player "player2"

etc

and  you can stop them individually as in

stop player "player2"

It seems to work using invisible players without controllers, if that  
helps.

I couldn't make it work with sounds other than in 'moov' format -  
they players didn't seem to want to take any notice of my wav sounds,  
for example - but I may have missed some trick there.

HTH

Graham


----------------------------------------
Graham Samuel / The Living Fossil Co. / UK and France




More information about the use-livecode mailing list