Difference between revisions of "LlStopSound"

From Second Life Wiki
Jump to navigation Jump to search
m (Best to give people links when directing them to another function, even if it is mentioned above or below.)
m (Replaced old <LSL> block with <source lang="lsl2">)
(7 intermediate revisions by 3 users not shown)
Line 3: Line 3:
|func=llStopSound
|func=llStopSound
|func_footnote
|func_footnote
|func_desc=Stops all attached sounds that are currently playing
|func_desc=Stops the attached sound(s) currently playing, if they were started by [[llLoopSound]]
|return_text
|return_text
|spec
|spec
|caveats=*There is no way to stop a specific sound.
|caveats=*There is no way to stop a specific sound.
*In a linked set it will only stop the sound from the prim the script is in.
|constants
|constants
|examples
|examples=
<source lang="lsl2">
default
{
    state_entry()
    {
        llLoopSound("string soundname if in object inventory or UUID", 1.0);
    }
    touch_start(integer total_number)
    {
        llStopSound();//As if by magic the sound stops!!
    }
}
</source>
|helpers
|helpers
|also_functions=
|also_functions=

Revision as of 12:41, 22 January 2015

Summary

Function: llStopSound( );

Stops the attached sound(s) currently playing, if they were started by llLoopSound

Caveats

  • There is no way to stop a specific sound.
  • In a linked set it will only stop the sound from the prim the script is in.
All Issues ~ Search JIRA for related Bugs

Examples

default
{
    state_entry()
    {
        llLoopSound("string soundname if in object inventory or UUID", 1.0);
    }
    touch_start(integer total_number)
    {
        llStopSound();//As if by magic the sound stops!!
    }
}

See Also

Functions

•  llSound This function has been deprecated, please use llPlaySound instead.
•  llPlaySound
•  llPlaySoundSlave
•  llLoopSound
•  llLoopSoundMaster
•  llLoopSoundSlave

Deep Notes

Search JIRA for related Issues

Signature

function void llStopSound();