SpiritHeart Magic
Registered User
Join date: 3 Jun 2008
Posts: 5
|
09-04-2008 18:37
What I need to do is simple: have a 1 minute sound file that will be broken into 6 - 10 sec sound files. I need the script to play them one after the other sequentially when the object is touched so the whole original sound file plays.
I understand about using llSetSoundQueueing and llPlaySound etc.
BUT, because I am mostly familiar with AS, and it appears there isn't any way in LSL to determine when a sound file has completed playing, what is the best way trigger playing each subsequent sound file so that the files play sequentially (and hopefully seamlessly)?
Use a timer set to 10 sec or...?
All help greatly appreciated!
SpiritHeart Magic
|
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
|
09-04-2008 19:32
You might take a look at this thread: /54/76/176348/1.html
_____________________
-
So long to these forums, the vBulletin forums that used to be at forums.secondlife.com. I will miss them.
I can be found on the web by searching for "SuezanneC Baskerville", or go to
http://www.google.com/profiles/suezanne
-
http://lindenlab.tribe.net/ created on 11/19/03.
Members: Ben, Catherine, Colin, Cory, Dan, Doug, Jim, Philip, Phoenix, Richard, Robin, and Ryan
-
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
09-04-2008 21:34
you have to use a timer
but be warned, the "fluidity" of lsl timers can effect your playback
you might get it working in your ivory tower of a workshop, then take it to a bogged down area and find it does not work as expected
there is no way around this afaik using the inworld system
the closest ive ever come to it, was to run a benchmark before the sounds played to see how long a second was in that perticular area and then adjust the timing value
... and it really didnt help all that much, because its ever changing
|
SpiritHeart Magic
Registered User
Join date: 3 Jun 2008
Posts: 5
|
Thanks
09-04-2008 23:11
Thanks for the info SuzanneC and Osgeld.
I was not too keen on the timer idea either but could not see another way given the limitations of LSL.
Maybe the script by Psyke Phaeton at the thread SuzanneC pointed me at will work. We'll see here shortly!
TY TY TY, SpiritHeart Magic
|