mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
Fix some warnings with MSVC.
This commit is contained in:
+12
-12
@@ -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);
|
||||
|
||||
/* We can now initialize our biquad parameters. */
|
||||
pLPF[0] = b1;
|
||||
pLPF[1] = b2;
|
||||
pLPF[2] = a1;
|
||||
pLPF[3] = a2;
|
||||
pLPF[0] = (float)b1;
|
||||
pLPF[1] = (float)b2;
|
||||
pLPF[2] = (float)a1;
|
||||
pLPF[3] = (float)a2;
|
||||
|
||||
/*
|
||||
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;
|
||||
}
|
||||
|
||||
if (pResampler->inTimeInt >= framesProcessedIn) {
|
||||
pResampler->inTimeInt -= framesProcessedIn;
|
||||
if (pResampler->inTimeInt >= (ma_uint32)framesProcessedIn) {
|
||||
pResampler->inTimeInt -= (ma_uint32)framesProcessedIn;
|
||||
} else {
|
||||
pResampler->inTimeInt = 0;
|
||||
}
|
||||
@@ -59967,8 +59967,8 @@ static MA_INLINE ma_result ma_linear_resampler_process_pcm_frames_f32_no_lpf(ma_
|
||||
framesProcessedIn = frameCountIn;
|
||||
}
|
||||
|
||||
if (pResampler->inTimeInt >= framesProcessedIn) {
|
||||
pResampler->inTimeInt -= framesProcessedIn;
|
||||
if (pResampler->inTimeInt >= (ma_uint32)framesProcessedIn) {
|
||||
pResampler->inTimeInt -= (ma_uint32)framesProcessedIn;
|
||||
} else {
|
||||
pResampler->inTimeInt = 0;
|
||||
}
|
||||
@@ -60749,8 +60749,8 @@ static ma_result ma_linear_resampler_process_pcm_frames_s16_upsample(ma_linear_r
|
||||
framesProcessedIn = frameCountIn;
|
||||
}
|
||||
|
||||
if (inTimeInt >= framesProcessedIn) {
|
||||
inTimeInt -= framesProcessedIn;
|
||||
if (inTimeInt >= (ma_uint32)framesProcessedIn) {
|
||||
inTimeInt -= (ma_uint32)framesProcessedIn;
|
||||
} else {
|
||||
inTimeInt = 0;
|
||||
}
|
||||
@@ -61264,8 +61264,8 @@ static ma_result ma_linear_resampler_process_pcm_frames_f32_upsample(ma_linear_r
|
||||
framesProcessedIn = frameCountIn;
|
||||
}
|
||||
|
||||
if (inTimeInt >= framesProcessedIn) {
|
||||
inTimeInt -= framesProcessedIn;
|
||||
if (inTimeInt >= (ma_uint32)framesProcessedIn) {
|
||||
inTimeInt -= (ma_uint32)framesProcessedIn;
|
||||
} else {
|
||||
inTimeInt = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user