You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.
This is an old revision of the document!
llPreloadSound(string sound)
Preloads 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.
Name or UUID of the sound clip to preload.
sound is a UUID, and an item with that name does not exist in the prim's inventory, the sound with that UUID will be preloaded.sound is a UUID and it matches a sound item that exists in the prim's inventory, the sound item takes precedence.sound is a UUID and it matches an item other than a sound in the prim's inventory, an error will be privately said (20m range) to the owner in DEBUG_CHANNEL.sound is not a UUID, and an item with that name does not exist, or is not a sound, an error will be privately said (20m range) to the owner in DEBUG_CHANNEL.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).