$nav
===== Function: llStopSound =====
llStopSound()
Stops the $lart[sound] playing in the prim the script is running in.
===== Notes =====
* Works only for $lfn[llPlaySound], $lfn[llLoopSound], and similar. Does not work for $lfn[llTriggerSound] or $lfn[llTriggerSoundLimited].
===== Short examples =====
llStopSound(); // stops a running sound
===== Complete examples =====
This script will start a looped $lart[sound] when it is touched, and stop it when it is touched again.
integer sound;
default
{
touch_start(integer n)
{
sound = !sound;
if (sound)
// Start the Jetpack looped sound at full volume.
llLoopSound("67f5e4f0-0534-4d97-bc01-f297648d20e0", 1.0);
else
// Stop it
llStopSound();
}
}
===== See also =====
* $lfn[llPlaySound] plays a sound in this prim.
* $lfn[llLoopSound] plays a looped sound in this prim.
* $lfn[llLoopSoundMaster] plays a looped sound letting others synchronize with it.
* $lfn[llLoopSoundSlave] plays a looped sound synchronized with a master.
* $lfn[llPlaySoundSlave] plays a sound synchronized with a master.
* $lfn[llAdjustSoundVolume] adjusts the volume of a sound playing in this prim.
* $lfn[llSetSoundRadius] adjusts how far the prim sounds can be heard.
* $lfn[llSetSoundQueueing] adjusts whether sounds are enqueued in this prim.
* $lfn[llTriggerSound] "drops" a sound where the prim is.
* $lfn[llTriggerSoundLimited] "drops" a sound where the prim is, with limited reach.
* $lfn[llPreloadSound] causes a sound to be preloaded, for faster playing.
* $lfn[llSound] plays a sound in this prim (deprecated - use $lfn[llPlaySound] instead).
* $lfn[llSoundPreload] causes a sound to be preloaded (deprecated - use $lfn[llPreloadSound] instead).
* $lart[Sound] (general information)