
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.