And the sound player winner is...

Garrett Hylltun garrett at
Tue Mar 7 12:18:22 EST 2006

Peter T. Evensen wrote:

> I guess I will stick with using two players and interleave them, so 
> that one is loading the next file while the other one is playing the 
> previous sound.  I was thinking of adding a call back to each player 
> so I start playing the next sound even before I get the playingStopped 
> on current player, to tighten things up even more. 
I'm not sure if Rev has the ability to get the total length in time of 
an mp3 file, but if it can, then you should be able to also track the 
time in Rev and start the next file say 4 or 5 seconds near the end of 
the first file.

In another language I made a DJ system with 3 slots setup and allowed 
the DJ to either manually transition between songs, or automatically.  I 
think I used 4 or 5 seconds as the default.

Also, is it possible in Rev to set the volume of each player? If so, you 
can set the volume of player 2 to 0, load it's file up and start playing 
it just to insure it's getting loaded up, then stop it, and set it back 
to it's start position and set the volume of it back to where it was.  
Then when the first player is just about done, second player is already 
primed and ready.


More information about the Use-livecode mailing list