mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
Bug fixes to the resampler.
This commit is contained in:
@@ -62664,6 +62664,12 @@ static ma_result ma_resampler_process_pcm_frames_no_input_output(ma_resampler* p
|
|||||||
ma_uint64 frameCountIn;
|
ma_uint64 frameCountIn;
|
||||||
ma_uint64 frameCountOut;
|
ma_uint64 frameCountOut;
|
||||||
|
|
||||||
|
frameCountIn = *pFrameCountIn;
|
||||||
|
frameCountOut = *pFrameCountOut;
|
||||||
|
|
||||||
|
/* The input needs to be treated as silence. */
|
||||||
|
MA_ZERO_MEMORY(framesIn, sizeof(framesIn));
|
||||||
|
|
||||||
totalFramesProcessedIn = 0;
|
totalFramesProcessedIn = 0;
|
||||||
totalFramesProcessedOut = 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);
|
return ma_resampler_process_pcm_frames_no_input_output(pResampler, pFrameCountIn, pFrameCountOut);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
frameCountIn = *pFrameCountIn;
|
||||||
|
frameCountOut = *pFrameCountOut;
|
||||||
|
|
||||||
totalFramesProcessedIn = 0;
|
totalFramesProcessedIn = 0;
|
||||||
totalFramesProcessedOut = 0;
|
totalFramesProcessedOut = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user