Only need convert counter to LONG

Reduce conversion necessary for optimization.
This commit is contained in:
RadWolfie 2018-06-06 23:07:29 -05:00
parent 0911180933
commit 9eab19ae00
1 changed files with 1 additions and 1 deletions

View File

@ -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 {