From 0419a51651acea249e2171abe089edc803be883d Mon Sep 17 00:00:00 2001 From: David Reid Date: Thu, 16 Nov 2017 19:15:48 +1000 Subject: [PATCH] Fix a bug in mal_src_read_frames_ex(). --- mini_al.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mini_al.h b/mini_al.h index fad9952f..e9cff556 100644 --- a/mini_al.h +++ b/mini_al.h @@ -9362,7 +9362,7 @@ mal_uint32 mal_src_read_frames_ex(mal_src* pSRC, mal_uint32 frameCount, void* pF } // Could just use a function pointer instead of a switch for this... - switch (pSRC->config.algorithm) + switch (algorithm) { case mal_src_algorithm_none: return mal_src_read_frames_passthrough(pSRC, frameCount, pFramesOut, flush); case mal_src_algorithm_linear: return mal_src_read_frames_linear(pSRC, frameCount, pFramesOut, flush);