llPreloadSound(string sound)
Preload a sound. The idea of preloading a sound is to transmit the sound in advance, so that when the time to play it comes, it is already cached by the surrounding avatars' viewers, and plays without delay.
Sleeps the script for 1.0 seconds.
Sound name or UUID of the sound clip to preload.
llPreloadSound("My Sound"); // Preloads the sound "My Sound" (the clip must exist in the prim)
default { on_rez(integer param) { // Preload a bubbling sound when this object is rezzed. llPreloadSound("00000000-0000-0000-0000-000000000115"); } touch_start(integer count) { // When touched, the sound will immediately be ready to play if the avatar // was present when the object was rezzed. llPlaySound("00000000-0000-0000-0000-000000000115", 1.0); } }
llStopSound stops a sound playing in this prim.llLoopSound plays a looped sound in this prim.llLoopSoundMaster plays a looped sound letting others synchronize with it.llLoopSoundSlave plays a looped sound synchronized with a master.llPlaySound plays a sound once in this prim.llPlaySoundSlave plays a sound synchronized with a master.llAdjustSoundVolume adjusts the volume of a sound playing in this prim.llSetSoundRadius adjusts how far the prim sounds can be heard.llSetSoundQueueing adjusts whether sounds are enqueued in this prim.llTriggerSound "drops" a sound where the prim is.llTriggerSoundLimited "drops" a sound where the prim is, with limited reach.llSound plays a sound in this prim (deprecated - use llPlaySound instead).llSoundPreload causes a sound to be preloaded (deprecated - use llPreloadSound instead).