|
Genesis Ronmark
Registered User
Join date: 14 Aug 2007
Posts: 42
|
04-20-2009 18:53
basically that, I'm looking to see if its possible to make a script play audio file dumped in just a box for now and loop back to 01 from 09.
Any help would be cool :3
|
|
Boss Spectre
Registered User
Join date: 5 Sep 2005
Posts: 229
|
04-20-2009 19:53
Yes, it's possible. There are some freebie "cd player" or "jukebox" scripts which do this. The transistion between a series of 10-second sounds is not perfect, but it's passable if you aren't listening too closely. I've had the best results by choosing the transition point for each sound clip, and then storing those durations in the script which plays them, in order to accurately time the queuing. (Only one sound is queued at a time, so queuing a second drops the first from the queue.) Script-wise, what you have to do is preload the sounds (so that they are already present on the client when they need to start, to avoid download lag)... enable sound queuing and then play them in sequence, by playing one, waiting a bit (less than the sound's full duration), then playing the next one, which won't actually start till the previous sound has completed. Lather, rinse, repeat. Preload only works for agents which are present at the time it's done, so anyone who arrives late will likely experience skipping sound chunks. Depending on lag, you can continue pre-loading upcoming sounds as you go, to relieve this some, but you'll probably want to stay a few chunks ahead, since 10-second clips can take more than ten seconds to preload, especially at higher bitrates. I think the largest sounds are about 862k in size.     ~Boss
|
|
Genesis Ronmark
Registered User
Join date: 14 Aug 2007
Posts: 42
|
04-30-2009 18:06
oh wow thats amazing, thanks a ton for all the help! ^^
|