# llLoopSoundSlave

*LSL function*

```lsl
void llLoopSoundSlave(string sound, float volume);
```

- `string sound`: Name of a sound in the prim's inventory, or a UUID.
- `float volume`: Volume level to set, between 0.0 (silent) and 1.0 (loud).

- Energy: 10

Plays the attached sound looping indefinitely at the specified volume, synchronized to the most audible active Sync Master in range.

Plays attached **sound** looping at **volume**, synced to most audible sync master declared by [llLoopSoundMaster](/functions/llLoopSoundMaster/).

```lsl title="How to use" frame="terminal"
llLoopSoundSlave("", 0.0);
```

## Caveats

- As an object can only have a single active sound, `llLoopSoundSlave()` should be called from a different prim than the one that defined a sync master, otherwise it will remove the master sound, and no sound will be available to sync-to.

## Examples

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

```lsl
default
{
   state_entry()
   {
      llLoopSoundSlave("sound name",.05);
   }
}
```

</details>

## Known issues

From the issue templates included by the wiki article:

- VWR-1574 (bug): llLoopSoundSlave and llPlaySoundSlave produce no sound.

## See also

### Functions

- [llPlaySound](/functions/llPlaySound/) — 3=Plays a sound `attached` once.
- [llPlaySoundSlave](/functions/llPlaySoundSlave/)
- [llLoopSound](/functions/llLoopSound/) — 3=Plays a sound `attached` indefinitely.
- [llLoopSoundMaster](/functions/llLoopSoundMaster/)
- [llTriggerSound](/functions/llTriggerSound/) — 3=Plays a sound `unattached`.
- [llTriggerSoundLimited](/functions/llTriggerSoundLimited/)

---

*Source: [LlLoopSoundSlave](https://wiki.secondlife.com/wiki/LlLoopSoundSlave) on the Second Life Wiki. Content from the Second Life Wiki articles LlLoopSoundSlave (revision 1194354, 2015-01-22), Template:Issues/VWR-1574 (revision 289703, 2009-03-23) and Template:LSL Function/inventory (revision 1191151, 2014-06-07), CC BY-SA 3.0.*

---

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