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;