Add option to mute audio on unfocus (#44377)

This commit is contained in:
metalgearsloth 2026-08-08 16:21:33 +10:00 • committed by GitHub
parent efb8c3d2fe
commit 0f9610d748
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 0 deletions

View file

@ -23,6 +23,7 @@
<CheckBox Name="AdminSoundsCheckBox" Text="{Loc 'ui-options-admin-sounds'}" />
<CheckBox Name="BwoinkSoundCheckBox" Text="{Loc 'ui-options-bwoink-sound'}" />
<CheckBox Name="AudioHrtfCheckBox" Text="{Loc 'ui-options-audio-hrtf'}" />
<CheckBox Name="MuteUnfocusedCheckBox" Text="{Loc 'ui-options-mute-unfocused'}" />
</BoxContainer>
</BoxContainer>
<ui:OptionsTabControlRow Name="Control" Access="Public" />

View file

@ -67,6 +67,7 @@ public sealed partial class AudioTab : Control
Control.AddOptionCheckBox(CCVars.AdminSoundsEnabled, AdminSoundsCheckBox);
Control.AddOptionCheckBox(CCVars.BwoinkSoundEnabled, BwoinkSoundCheckBox);
Control.AddOptionCheckBox(CCVars.AudioHrtf, AudioHrtfCheckBox);
Control.AddOptionCheckBox(CVars.AudioMuteUnfocused, MuteUnfocusedCheckBox);
Control.Initialize();
}

View file

@ -39,6 +39,7 @@ ui-options-restart-sounds = Round Restart Sounds
ui-options-event-music = Event Music
ui-options-admin-sounds = Play Admin Sounds
ui-options-bwoink-sound = Play AHelp Notification Sound
ui-options-mute-unfocused = Mute audio when unfocused
ui-options-audio-device = Output device:
ui-options-audio-device-default = System default
ui-options-audio-hrtf = Enable HRTF Audio Processing (Requires Restart)