# sound datum

Source: https://ref.dm-lang.org/sound/

A `/sound` datum is created by the `sound()` proc or by `new/sound()`. It can be used to change the way a sound file will play. When you're ready to play the sound, just send it to a player like so:

```dm
var/sound/S = sound('bubbles.wav')
usr << S
```

The sound file can be supplied as a list of choices, in which case the client will play the first compatible sound in the list.

### See also
- [vars (sound)](https://ref.dm-lang.org/sound/var/index.md)
- [sound proc](https://ref.dm-lang.org/proc/sound.md)
- [stddef.dm file](https://ref.dm-lang.org/appendix/stddefdotdm.md)
- [load_resource proc](https://ref.dm-lang.org/proc/load_resource.md)

## Pages

- [vars (sound)](https://ref.dm-lang.org/sound/var/index.md)
