Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

looking for jukebox script sources

Jeremy Bender
anachronistic iconoclast
Join date: 12 Aug 2006
Posts: 99
11-17-2006 08:30
Hi, I have searched quite a bit on the forum and in-world and can't find any opensources for a jukebox script. (well I found one on the forum but its really old and kinda funky and incomplete) :)

I know this is a crappy method to play music in SL and that I should get a stream, etc. etc. What I am after here really is to get a hold of an example so I can understand how it is done.

I am building some ambient sound thingies and a fireplace all of which would be better if they cycled through a reasonably small number of 10 second sound files. Better yet would be if they could randomise the selection of file rather than play them strictly in a sequence.

As far as I can see its a matter of using LLGetInventory to pick the file names out of the prim inventory and either stuffing them into a list or cycling though them manually with a loop. I am not sure on the starting and stopping, the synchronisation, or the PreLoading and whether it's possible to do this in a non-laggy way at all. Is it laggier if it tries to do fifty clips as opposed to 2 or 3?

If someone has a good solid example of this kind of thing that is opensource that I can study I would appreciate it.
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
11-17-2006 09:58
I think I've got something that will more or less do this. IM me in world to remind me and I'll try to dig out a copy and send it over.
_____________________
Eloise's MiniMall
Visit Eloise's Minimall
New, smaller footprint, same great materials.

Check out the new blog