Only need convert counter to LONG
Reduce conversion necessary for optimization.
This commit is contained in:
parent
0911180933
commit
9eab19ae00
|
@ -1513,7 +1513,7 @@ inline HRESULT HybridDirectSoundBuffer_SetMixBinVolumes_8(
|
|||
}
|
||||
}
|
||||
if (counter > 0) {
|
||||
Xb_volumeMixBin = LONG((float)volume / (float)counter);
|
||||
Xb_volumeMixBin = volume / (LONG)counter;
|
||||
hRet = HybridDirectSoundBuffer_SetVolume(pDSBuffer, Xb_volume, EmuFlags, nullptr,
|
||||
Xb_volumeMixBin, Xb_dwHeadroom);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue