Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Does SetSoundQueueing Work ???

Da5id Zsigmond
Registered User
Join date: 26 Jan 2007
Posts: 34
05-03-2007 08:53
I have been trying to use llSetSoundQueueing in a script for an object that has multiple audio files that you can select via dialogue. The script does a loopsoundslave call - yes there is a master that everything does sync to. However, everytime the script does a new loopsoundslave call it stops the playing loop immediately and waits for the start of the next master loop. I've seen some other references to SetSoundQueueing not working - is this true or am I just unclear on the concept once again.
I have the SetSoundQueueing function in the same state as the loopsoundslave call so its not that.
Any hints??
Here's the part of the script that does this.


state PlayingDaLoop
{
state_entry()
{
llSay(0,"Entering state PlayingDaLoop";);
llSetSoundQueueing(TRUE);
llSay(0,"GroupicleName at PlayingDaLoop is " +GroupicleName);
if(GroupicleName != "NONE";)
{
llSay(0,"setting Groupicle Listen Handles";);
Handle1 = llListen(GroupicleVolumeChannel,"",NULL_KEY,"";);
Handle2 = llListen(GroupicleToggleOn,"",NULL_KEY,"";);
}
else // it does = none
{MasterVolume = "10"; // since no group, only affected by local volume.
} // do i need to turn off toggle?

if(PlayInSync == TRUE)
{
llSay(0,"Starting LoopSoundSlave";);
llSay(0,"WaveToPlay = " +WaveToPlay+ ", Total Volume = " +(string)TotalVolume+ " ,MyVolume = " +MyVolume+ "Group Is " +GroupicleName);
llLoopSoundSlave(WaveToPlay,TotalVolume);

}
else
{
llLoopSound(WaveToPlay,TotalVolume);

}

} //end state entry
Rumbeard Chowderhead
Registered User
Join date: 9 Apr 2006
Posts: 7
05-04-2007 04:36
been broke for some time now. As far as i know it is still broke.
Milo Linden
Quality Assurance
Join date: 22 Mar 2006
Posts: 140
05-04-2007 06:35
This has been fixed internally and should be released soon, keep an eye on the release notes.
Sterling Whitcroft
Registered User
Join date: 2 Jul 2006
Posts: 678
05-04-2007 12:47
YAY! Fixes are coming!
Da5id Zsigmond
Registered User
Join date: 26 Jan 2007
Posts: 34
How do they do it with records then?
05-05-2007 01:06
Thanks for the reply its nice its not me for a change and it will be great when it works.

However, since its not working, and apparently PreLoadSound is deprecated I'm trying to figure out how these records that I acquired are scripted. They fairly seamlessly play a song that has been chopped into 10 second pieces. Every time I get an object to play an audio file for the first time there's a fair delay as it is apparently loaded but with these it doesn't happen.
I'm wondering if a loop with a really fast call to play and immediately stop each file in inventory would be sufficient to get all the wav files into immediately accessible memory? If there's a standard hack for this I'd love to know.