Difference between revisions of "LlSetSoundQueueing"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
m |
|||
Line 21: | Line 21: | ||
llPreloadSound("SoundName2");//This loads the sounds into all in range viewers and cuts delay between sounds. | llPreloadSound("SoundName2");//This loads the sounds into all in range viewers and cuts delay between sounds. | ||
} | } | ||
touch_start(integer | touch_start(integer detected) | ||
{ | { | ||
llSetSoundQueueing(TRUE);//Set to TRUE for queueing and SoundName2 plays after the SoundName1 has ended. | llSetSoundQueueing(TRUE);//Set to TRUE for queueing and SoundName2 plays after the SoundName1 has ended. |
Revision as of 18:42, 14 May 2009
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: llSetSoundQueueing( integer queue );208 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
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.
- Once set the queueing is a property of the prim and must be set to FALSE in an active script to deactivate it.
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 detected) { llSetSoundQueueing(TRUE);//Set to TRUE for queueing and SoundName2 plays after the SoundName1 has ended. //Set to FALSE both sounds will try to play at the same time but only the second will be played. //Can be set anywhere withing the script (if within an event it will activate when the event is triggered. llPlaySound("SoundName1", 1.0); llPlaySound("SoundName2", 1.0); }
}
</lsl>See Also
Functions
• | llLoopSound | |||
• | llLoopSoundSlave | – | Plays a sound attached. |