From 0f1ead087372fd9ce7c2001ceff0266715630f05 Mon Sep 17 00:00:00 2001 From: David Reid Date: Sat, 14 Feb 2026 14:56:49 +1000 Subject: [PATCH] Remove a TODO. --- miniaudio.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/miniaudio.h b/miniaudio.h index 4fc438d3..aa14a5e4 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -59216,7 +59216,6 @@ MA_API ma_result ma_linear_resampler_init_preallocated(const ma_linear_resampler return result; } - /* TODO: Remove the `inTimeInt = 1` thing when the new optimizations are done. */ if (pResampler->lpfOrder == 0) { pResampler->inTimeInt = 0; } else { @@ -60514,6 +60513,12 @@ static ma_result ma_linear_resampler_process_pcm_frames_s16_upsample(ma_linear_r /* The rate must have changed between calls. Ignore the cached frame. */ } + /* + When upsampling we should never be skipping any input frames so processing should always start + from the first input frame. + */ + inTimeInt = 0; + /* Experimental loop unrolling to make it easier for SIMD-ification. */ #if 1 { @@ -61023,6 +61028,12 @@ static ma_result ma_linear_resampler_process_pcm_frames_f32_upsample(ma_linear_r /* The rate must have changed between calls. Ignore the cached frame. */ } + /* + When upsampling we should never be skipping any input frames so processing should always start + from the first input frame. + */ + inTimeInt = 0; + /* Experimental loop unrolling to make it easier for SIMD-ification. */ #if 1 {