Skip to content

Commit e1dcc4f

Browse files
authored
Merge 97d4796 into 262b27c
2 parents 262b27c + 97d4796 commit e1dcc4f

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

source/gui/settingsDialogs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2652,7 +2652,7 @@ def onPanelActivated(self):
26522652

26532653
def _onSoundVolChange(self, event: wx.Event) -> None:
26542654
"""Called when the sound volume follow checkbox is checked or unchecked."""
2655-
wasapi = bool(config.conf["audio"]["WASAPI"])
2655+
wasapi = nvwave.usingWasapiWavePlayer()
26562656
self.soundVolFollowCheckBox.Enable(wasapi)
26572657
self.soundVolSlider.Enable(
26582658
wasapi

source/nvwave.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,3 +1070,7 @@ def initialize():
10701070
func.restype = HRESULT
10711071
func.errcheck = _wasPlay_errcheck
10721072
NVDAHelper.localLib.wasPlay_startup()
1073+
1074+
1075+
def usingWasapiWavePlayer() -> bool:
1076+
return issubclass(WavePlayer, WasapiWavePlayer)

0 commit comments

Comments
 (0)