|
GC Continental
Registered User
Join date: 8 Aug 2006
Posts: 17
|
09-22-2006 09:58
Hi all. I'm writing a new wav player script. I can play a list of wavs no problem, but they do not play seamlessly. The have a split-second pause between them. I am already using llPreloadSound() and sound qeueuing.
I've heard objects in-world do exactly this, so I know it's possible. Does anyone here know how it's done?
|
|
Gerami Fizz
That Guy
Join date: 15 Jun 2005
Posts: 88
|
09-22-2006 10:07
I've played with this quite a bit. In the end, I think it really boils down to luck and bandwidth. If you preload all your sounds ahead of time (I'm talking at least a minute, here) it sometimes helps. Another thing some people suggest is to play the sounds at volume 0 instead of preloading them, though I didn't have any additional luck with that.
Once you've played it through the first time, the sounds should be cached on your client and it should play back correctly for the rest of your session.
Finally, check your sound clips to make sure you don't have any dead air at the beginning or end of them. This one really stumped me for a long time... Some sound editing programs will automatically add some silence on the ends without asking your permission.
|
|
GC Continental
Registered User
Join date: 8 Aug 2006
Posts: 17
|
09-22-2006 13:51
Bummer. Been over those. Everything's preloaded and qeueued. I've heard it work before without any delay.
|
|
Gerami Fizz
That Guy
Join date: 15 Jun 2005
Posts: 88
|
09-22-2006 13:54
Oh, one last thing I do: Instead of setting a timer to play the next sound -exactly- as the last one ends, I make the script play the next file in the set slightly before the current one ends. With queueing enabled, you don't interrupt what's currently playing, and when it finishes you've got the next one ready to go.
|
|
GC Continental
Registered User
Join date: 8 Aug 2006
Posts: 17
|
09-24-2006 19:42
Thx. I sorta went there already by setting my timer .5 sec too early. Does this actually work for you? My next idea is to try with two prims and let them overlap by as small an amount as possible, like 1 or 2 msec if it's possible. 1 or 2 should be enough to avoid a pause, but not enough for a note to change. I don't think that short a duration is possible but I'll try to get as close as possible. I wonder if anyone who still reads these forums has done this and isn't piping up 
|
|
Lazink Maeterlinck
Registered User
Join date: 8 Nov 2005
Posts: 332
|
09-24-2006 20:44
you might try having 2 scripts, one that just preloads the sound, and the other that actually plays the sound, might help in timing for you 
|