Fixed MB looping sound after 'OK' in Configuration (#813)

This commit is contained in:
tomcw 2020-07-17 22:53:17 +01:00
parent b35ba0b04a
commit 52ff9d5b99
2 changed files with 2 additions and 2 deletions

View File

@ -2063,7 +2063,7 @@ void MB_SetVolume(DWORD dwVolume, DWORD dwVolumeMax)
MockingboardVoice.nVolume = NewVolume(dwVolume, dwVolumeMax);
if(MockingboardVoice.bActive)
if (MockingboardVoice.bActive && !MockingboardVoice.bMute)
MockingboardVoice.lpDSBvoice->SetVolume(MockingboardVoice.nVolume);
}

View File

@ -873,7 +873,7 @@ void SpkrSetVolume(DWORD dwVolume, DWORD dwVolumeMax)
SpeakerVoice.nVolume = NewVolume(dwVolume, dwVolumeMax);
if(SpeakerVoice.bActive)
if (SpeakerVoice.bActive && !SpeakerVoice.bMute)
SpeakerVoice.lpDSBvoice->SetVolume(SpeakerVoice.nVolume);
}