When the AudioTypeGroup on an AudioOutput is not a valid enum (such as when it is -1), the volume of the output does not update when the player changes their volume settings.
To Reproduce
Spawn a sound player and use IntToEnum<AudioTypeGroup> to drive/write the AudioTypeGroup of the output to an invalid enum (-1 or 4). This must be done while the player is actively playing audio. Then change your volume settings. The volume of the playback stays the same even when master volume gets set to 0.
Alternatively, spawn the item called Audio Settings Bypass from this folder
and turn on the bool toggle while the sound effect is playing. Then change your volume settings and notice that the playback does not change in volume.
Expected behavior
The AudioOutput falls back to a default audio type (such as multimedia) when provided with an invalid enum or doesn't play at all.
Screenshots
No response
Resonite Version Number
Beta 2024.5.7.505
What Platforms does this occur on?
Windows
What headset if any do you use?
Quest 2, Desktop
Log Files
Unable to add at the moment
Additional Context
This is urgent because it could allow players to harass others with loud sound effects that can only be stopped/made quieter by leaving the world. This could be dangerous to players with auditory processing disorders or sound-sensitive epilepsy.
Describe the bug?
When the AudioTypeGroup on an AudioOutput is not a valid enum (such as when it is -1), the volume of the output does not update when the player changes their volume settings.
To Reproduce
Spawn a sound player and use IntToEnum<AudioTypeGroup> to drive/write the AudioTypeGroup of the output to an invalid enum (-1 or 4). This must be done while the player is actively playing audio. Then change your volume settings. The volume of the playback stays the same even when master volume gets set to 0.
Alternatively, spawn the item called
Audio Settings Bypass
from this folderand turn on the bool toggle while the sound effect is playing. Then change your volume settings and notice that the playback does not change in volume.
Expected behavior
The AudioOutput falls back to a default audio type (such as multimedia) when provided with an invalid enum or doesn't play at all.
Screenshots
No response
Resonite Version Number
Beta 2024.5.7.505
What Platforms does this occur on?
Windows
What headset if any do you use?
Quest 2, Desktop
Log Files
Unable to add at the moment
Additional Context
This is urgent because it could allow players to harass others with loud sound effects that can only be stopped/made quieter by leaving the world. This could be dangerous to players with auditory processing disorders or sound-sensitive epilepsy.
Reporters
Sloppy McFloppy ShadowX