Corrected Volume Check

This commit is contained in:
RadWolfie 2017-10-28 16:45:59 -05:00
parent 4c44c0f568
commit 8c0eb97228
1 changed files with 2 additions and 2 deletions

View File

@ -1384,8 +1384,8 @@ inline HRESULT HybridDirectSoundBuffer_SetVolume(
lVolume = -10000;
}
}
if (lVolume > -10000 && lVolume <= -6400) {
lVolume = -10000;
if (lVolume <= -6400) {
lVolume = DSBVOLUME_MIN;
} else if (lVolume > 0) {
EmuWarning("HybridDirectSoundBuffer_SetVolume has received greater than 0: %d", lVolume);
lVolume = 0;