From d39c8747365cbc5d491efca027466ad19cd2fefb Mon Sep 17 00:00:00 2001 From: David Reid Date: Fri, 20 Feb 2026 08:46:00 +1000 Subject: [PATCH] Bug fixes to the resampler. --- miniaudio.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/miniaudio.h b/miniaudio.h index be9a1b88..d37a1774 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -62664,6 +62664,12 @@ static ma_result ma_resampler_process_pcm_frames_no_input_output(ma_resampler* p ma_uint64 frameCountIn; ma_uint64 frameCountOut; + frameCountIn = *pFrameCountIn; + frameCountOut = *pFrameCountOut; + + /* The input needs to be treated as silence. */ + MA_ZERO_MEMORY(framesIn, sizeof(framesIn)); + totalFramesProcessedIn = 0; totalFramesProcessedOut = 0; @@ -62761,6 +62767,9 @@ static ma_result ma_resampler_process_pcm_frames_no_output(ma_resampler* pResamp return ma_resampler_process_pcm_frames_no_input_output(pResampler, pFrameCountIn, pFrameCountOut); } + frameCountIn = *pFrameCountIn; + frameCountOut = *pFrameCountOut; + totalFramesProcessedIn = 0; totalFramesProcessedOut = 0;