Fix a couple type truncation warnings with MSVC

This commit is contained in:
Chris Robinson
2019-05-12 19:41:34 -07:00
parent 8d437a5135
commit 5ac19673db
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -988,7 +988,7 @@ HRESULT WasapiPlayback::resetProxy()
/* Find the nearest multiple of the period size to the update size */
if(min_per < per_time)
min_per *= maxu((per_time + min_per/2) / min_per, 1u);
min_per *= maxi64((per_time + min_per/2) / min_per, 1);
min_len = (UINT32)ScaleCeil(min_per, mDevice->Frequency, REFTIME_PER_SEC);
min_len = minu(min_len, buffer_len/2);
+1 -1
View File
@@ -783,7 +783,7 @@ void aluInitRenderer(ALCdevice *device, ALint hrtf_id, HrtfRequestMode hrtf_appr
else
{
int hqdec{GetConfigValueBool(devname, "decoder", "hq-mode", 0)};
InitCustomPanning(device, hqdec, pconf, speakermap);
InitCustomPanning(device, !!hqdec, pconf, speakermap);
}
/* Enable the stablizer only for formats that have front-left, front-