Fix some warnings with MSVC.

This commit is contained in:
David Reid
2026-02-14 20:24:52 +10:00
parent 5ffa29a80b
commit d286a97ab1
+12 -12
View File
@@ -59005,10 +59005,10 @@ static ma_result ma_linear_resampler_set_rate_internal(ma_linear_resampler* pRes
float* pLPF = MA_LINEAR_RESAMPLER_GET_LPF_STATE_F32(pResampler, iLPF); float* pLPF = MA_LINEAR_RESAMPLER_GET_LPF_STATE_F32(pResampler, iLPF);
/* We can now initialize our biquad parameters. */ /* We can now initialize our biquad parameters. */
pLPF[0] = b1; pLPF[0] = (float)b1;
pLPF[1] = b2; pLPF[1] = (float)b2;
pLPF[2] = a1; pLPF[2] = (float)a1;
pLPF[3] = a2; pLPF[3] = (float)a2;
/* /*
For safety, make sure the registers are cleared if this is being called because the resampler For safety, make sure the registers are cleared if this is being called because the resampler
@@ -59596,8 +59596,8 @@ static MA_INLINE ma_result ma_linear_resampler_process_pcm_frames_s16_no_lpf(ma_
framesProcessedIn = frameCountIn; framesProcessedIn = frameCountIn;
} }
if (pResampler->inTimeInt >= framesProcessedIn) { if (pResampler->inTimeInt >= (ma_uint32)framesProcessedIn) {
pResampler->inTimeInt -= framesProcessedIn; pResampler->inTimeInt -= (ma_uint32)framesProcessedIn;
} else { } else {
pResampler->inTimeInt = 0; pResampler->inTimeInt = 0;
} }
@@ -59967,8 +59967,8 @@ static MA_INLINE ma_result ma_linear_resampler_process_pcm_frames_f32_no_lpf(ma_
framesProcessedIn = frameCountIn; framesProcessedIn = frameCountIn;
} }
if (pResampler->inTimeInt >= framesProcessedIn) { if (pResampler->inTimeInt >= (ma_uint32)framesProcessedIn) {
pResampler->inTimeInt -= framesProcessedIn; pResampler->inTimeInt -= (ma_uint32)framesProcessedIn;
} else { } else {
pResampler->inTimeInt = 0; pResampler->inTimeInt = 0;
} }
@@ -60749,8 +60749,8 @@ static ma_result ma_linear_resampler_process_pcm_frames_s16_upsample(ma_linear_r
framesProcessedIn = frameCountIn; framesProcessedIn = frameCountIn;
} }
if (inTimeInt >= framesProcessedIn) { if (inTimeInt >= (ma_uint32)framesProcessedIn) {
inTimeInt -= framesProcessedIn; inTimeInt -= (ma_uint32)framesProcessedIn;
} else { } else {
inTimeInt = 0; inTimeInt = 0;
} }
@@ -61264,8 +61264,8 @@ static ma_result ma_linear_resampler_process_pcm_frames_f32_upsample(ma_linear_r
framesProcessedIn = frameCountIn; framesProcessedIn = frameCountIn;
} }
if (inTimeInt >= framesProcessedIn) { if (inTimeInt >= (ma_uint32)framesProcessedIn) {
inTimeInt -= framesProcessedIn; inTimeInt -= (ma_uint32)framesProcessedIn;
} else { } else {
inTimeInt = 0; inTimeInt = 0;
} }