Files
Batrachophreno 8b0bcae27a Sound channel assignment stuff (#21845)
Fixes https://github.com/Aurorastation/Aurora.3/issues/21806

Headphones using the PlayNonloopingSound proc meant that in
datum/sound_token/New(), it wasnt being dynamically assigned its own
channel and so the associated sound.channel was defaulting to zero. This
broke a bunch of stupid sound stuff when the headphones were A.) playing
while onscreen but not within range of a listener and B.) stopping songs
while other SFX happened to be playing and C.) probably other cases.

PlayNonloopingSound is not used anywhere else in the repo at this time.
2026-02-11 16:53:52 +00:00
..