Files
Bubberstation/code/game/sound
RoxyandGitHub e8a48b4a18 Adds volume_preference parameter to playsound and playsound_local (#92133)
## About The Pull Request

Adds a new parameter, `volume_preference` to `playsound` and
`/mob/playsound_local`, it takes a `/datum/preference/numeric/volume`
type path and enables you to specify a volume preference you'd like the
sound to be modified by on a per-listener basis.

## Why It's Good For The Game

Right now the only use volume preferences have is in direct,
client-specific `SEND_SOUND` calls, because modifying the volume
parameter in `playsound` modifies it for all listeners. This new
parameter allows the other 95% of situations where a sound effect is
played (i.e. code that use `playsound`) to make use of client volume
preferences.

## Changelog
🆑
code: added a new parameter to playsound and playsound_local that lets
you specify a volume pref type to use
/🆑
2025-07-24 14:56:03 +12:00
..