Fix volume average conversion

This commit is contained in:
RadWolfie 2018-06-06 22:47:18 -05:00
parent 706158149a
commit 88ee1bfe88
1 changed files with 1 additions and 1 deletions

View File

@ -1508,7 +1508,7 @@ inline HRESULT HybridDirectSoundBuffer_SetMixBinVolumes_8(
} }
} }
if (counter > 0) { if (counter > 0) {
Xb_volumeMixBin = volume / counter; Xb_volumeMixBin = LONG((float)volume / (float)counter);
hRet = HybridDirectSoundBuffer_SetVolume(pDSBuffer, Xb_volume, EmuFlags, nullptr, hRet = HybridDirectSoundBuffer_SetVolume(pDSBuffer, Xb_volume, EmuFlags, nullptr,
Xb_volumeMixBin, Xb_dwHeadroom); Xb_volumeMixBin, Xb_dwHeadroom);
} else { } else {