Difference between revisions of "LlSetSoundQueueing"

From Second Life Wiki
Jump to navigation Jump to search
Line 17: Line 17:
     state_entry()
     state_entry()
     {         
     {         
         llPreloadSound("SondName as a string if sound is in prim inventory or UUID of sound");\\This loads the sounds into all in range viewers and cuts delay between sounds.
         llPreloadSound("SoundName1 as a string if sound is in prim inventory or UUID of sound");
        llPreloadSound("As above");        
        llPreloadSound("SoundName2");//This loads the sounds into all in range viewers and cuts delay between sounds.         
     }
     }
     touch_start(integer total_number)
     touch_start(integer total_number)
     {
     {
         llSetSoundQueueing(TRUE);\\Set to TRUE for queueing one sound plays after the first has ended. Set to FALSE both sounds will try to play at the same time and both will fail.
         llSetSoundQueueing(TRUE);//Set to TRUE for queueing one sound plays after the first has ended.
         llPlaySound("As above", 1.0);
                                //Set to FALSE both sounds will try to play at the same time and both will fail.
         llPlaySound("As above", 1.0);
         llPlaySound("SoundName1", 1.0);
         llPlaySound("SoundName2", 1.0);
     }
     }
}
}

Revision as of 17:22, 14 May 2009

Summary

Function: llSetSoundQueueing( integer queue );

Determines whether attached sound calls wait for the current sound to finish by using queue. Sound queuing is disabled by default.

• integer queue boolean, TRUE enables, FALSE disables (default)

Caveats

It appears that only two sounds can be queued at a time.

All Issues ~ Search JIRA for related Bugs

Examples

<lsl> default {

   state_entry()
   {        
       llPreloadSound("SoundName1 as a string if sound is in prim inventory or UUID of sound");
       llPreloadSound("SoundName2");//This loads the sounds into all in range viewers and cuts delay between sounds.        
   }
   touch_start(integer total_number)
   {
       llSetSoundQueueing(TRUE);//Set to TRUE for queueing one sound plays after the first has ended.
                                //Set to FALSE both sounds will try to play at the same time and both will fail.
       llPlaySound("SoundName1", 1.0);
       llPlaySound("SoundName2", 1.0);
   }

}

</lsl>

See Also

Functions

•  llLoopSound
•  llLoopSoundSlave Plays a sound attached.

Deep Notes

Search JIRA for related Issues

Signature

function void llSetSoundQueueing( integer queue );