From ed6ad79e247d5534d926b99c00beffd550fb5b36 Mon Sep 17 00:00:00 2001 From: David Reid Date: Sun, 26 Jan 2020 11:24:02 +1000 Subject: [PATCH] Don't use generic seeking with the linear resampler. --- research/ma_resampler.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/research/ma_resampler.h b/research/ma_resampler.h index 80fbea5a..d40168fa 100644 --- a/research/ma_resampler.h +++ b/research/ma_resampler.h @@ -1224,7 +1224,8 @@ static ma_result ma_resampler_process_pcm_frames__seek__linear(ma_resampler* pRe { MA_ASSERT(pResampler != NULL); - return ma_resampler_process_pcm_frames__seek__generic(pResampler, pFramesIn, pFrameCountIn, pFrameCountOut); + /* Seeking is supported natively by the linear resampler. */ + return ma_linear_resampler_process_pcm_frames(pResampler, pFramesIn, pFrameCountIn, NULL, pFrameCountOut); } #if defined(MA_HAS_SPEEX_RESAMPLER)