# llLinkStopSound

*LSL function*

```lsl
void llLinkStopSound(integer link);
```

- `integer link`: Link number (1 for root, >1 for children) or a LINK_* flag.

- Energy: 10

Stops the playback of any currently playing attached sound on the linked prim link.

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

```lsl title="How to use" frame="terminal"
llLinkStopSound(0);
```

## Caveats

- There is no way to stop a specific sound.
- In a linked set use [llLinkStopSound](/functions/llLinkStopSound/) to stop sound in a specific prim.

## Examples

<details open>
<summary>Example 1</summary>

```lsl
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!!
    }
}
```

</details>

## Related functions

The original wiki page documents these functions together with this one:

- [llStopSound](/functions/llStopSound/)

## See also

### Functions

- [llSound](https://wiki.secondlife.com/wiki/LlSound) — 3=This function has been deprecated, please use [llPlaySound](/functions/llPlaySound/) instead.
- [llPlaySound](/functions/llPlaySound/)
- [llPlaySoundSlave](/functions/llPlaySoundSlave/)
- [llLoopSound](/functions/llLoopSound/)
- [llLoopSoundMaster](/functions/llLoopSoundMaster/)
- [llLoopSoundSlave](/functions/llLoopSoundSlave/)

---

*Source: [LlStopSound](https://wiki.secondlife.com/wiki/LlStopSound) on the Second Life Wiki. Content from the Second Life Wiki articles LlStopSound (revision 1213225, 2023-02-03) and Template:LSL Function/link-face (revision 1186827, 2014-01-12), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/functions/llLinkStopSound/
