mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-23 00:30:17 +00:00
Fixed MB looping sound after 'OK' in Configuration (#813)
This commit is contained in:
parent
b35ba0b04a
commit
52ff9d5b99
@ -2063,7 +2063,7 @@ void MB_SetVolume(DWORD dwVolume, DWORD dwVolumeMax)
|
|||||||
|
|
||||||
MockingboardVoice.nVolume = NewVolume(dwVolume, dwVolumeMax);
|
MockingboardVoice.nVolume = NewVolume(dwVolume, dwVolumeMax);
|
||||||
|
|
||||||
if(MockingboardVoice.bActive)
|
if (MockingboardVoice.bActive && !MockingboardVoice.bMute)
|
||||||
MockingboardVoice.lpDSBvoice->SetVolume(MockingboardVoice.nVolume);
|
MockingboardVoice.lpDSBvoice->SetVolume(MockingboardVoice.nVolume);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -873,7 +873,7 @@ void SpkrSetVolume(DWORD dwVolume, DWORD dwVolumeMax)
|
|||||||
|
|
||||||
SpeakerVoice.nVolume = NewVolume(dwVolume, dwVolumeMax);
|
SpeakerVoice.nVolume = NewVolume(dwVolume, dwVolumeMax);
|
||||||
|
|
||||||
if(SpeakerVoice.bActive)
|
if (SpeakerVoice.bActive && !SpeakerVoice.bMute)
|
||||||
SpeakerVoice.lpDSBvoice->SetVolume(SpeakerVoice.nVolume);
|
SpeakerVoice.lpDSBvoice->SetVolume(SpeakerVoice.nVolume);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user