Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Pre-buffering sound clips

Dire Lobo
Registered User
Join date: 20 Dec 2005
Posts: 47
04-17-2006 10:52
I have a simple script which plays 3 sound clips in sequence using llPlaySound() and llSetSoundQueueing(TRUE). I use a timer event to wait several seconds after calling llPlaySound() before I call it again for the next sound clip. Each clip is 10 seconds long or less; none are more then 10 seconds.

What I find is that just after logging in to SL - but after waiting several minutes to make sure all the pending texture's have downloaded, etc. - the first sound will not being to play until after 3 or 4 seconds of it have gone by, then it will play to the end of the first clip and not play the second or third clip at all.

If I touch the object again to trigger it a second time it plays all 3 clips in sequence smoothly from start to finish. But not the first time.

So... what I need is some way to pre-buffer the sound clip before an avatar triggers it. I have some very weak ideas about pre-loading them by playing them at low volume. Not optimal.

Have others dealt with this issue before? TIA.
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
04-17-2006 11:48
Try http://secondlife.com/badgeo/wakka.php?wakka=llPreloadSound
Dire Lobo
Registered User
Join date: 20 Dec 2005
Posts: 47
04-17-2006 12:16
DOH! Can't you come up with something more complicated?

Sorry. I should have found that myself...
Alphasun Logan
alphasun logan
Join date: 11 Jan 2006
Posts: 1
Sound clip script
04-25-2006 05:47
Hi Dire Lobo,
I would like a copy of your script. I want to set up a busking scenario and will use the sounds to introduce the act. I suppose it's not practical to play a whole track by enqueueing 10-second clips? I plan to use a stream, but playing tracks diurectly via a script event-driven command would be great.
Eep Quirk
Absolutely Relative
Join date: 15 Dec 2004
Posts: 1,211
04-25-2006 06:13
Which doesn't actually work...