Fix volume average conversion
This commit is contained in:
parent
706158149a
commit
88ee1bfe88
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue