# llPlaySoundSlave

*LSL function*

```lsl
void llPlaySoundSlave(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 once at volume, synchronized to the next loop point of the most audible active Sync Master.

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

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

## Caveats

- As an object can only have a single active sound, this function 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.
- This function is affected by the [Sound Queueing](/functions/llSetSoundQueueing/) property of the parent prim - this means it's possible to queue a slave sound prior to starting a master, without having to use more than one prim as an emitter. (See example on [llLoopSoundMaster](/functions/llLoopSoundMaster/)).

## 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.
- [llLoopSound](/functions/llLoopSound/) — 3=Plays a sound `attached` indefinitely.
- [llLoopSoundMaster](/functions/llLoopSoundMaster/)
- [llLoopSoundSlave](/functions/llLoopSoundSlave/)
- [llTriggerSound](/functions/llTriggerSound/) — 3=Plays a sound `unattached`.
- [llTriggerSoundLimited](/functions/llTriggerSoundLimited/)
- [llSetSoundQueueing](/functions/llSetSoundQueueing/)

---

*Source: [LlPlaySoundSlave](https://wiki.secondlife.com/wiki/LlPlaySoundSlave) on the Second Life Wiki. Content from the Second Life Wiki articles LlPlaySoundSlave (revision 1210675, 2022-04-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/llPlaySoundSlave/
