Fix a bug in mal_src_read_frames_ex().

This commit is contained in:
David Reid
2017-11-16 19:15:48 +10:00
parent cc04821ba6
commit 0419a51651
+1 -1
View File
@@ -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);