Commit 1b1ca901 authored by David Reid's avatar David Reid

Fix a bug with sinc SRC.

parent b4237a51
...@@ -23565,6 +23565,8 @@ mal_uint64 mal_src_read_deinterleaved__sinc(mal_src* pSRC, mal_uint64 frameCount ...@@ -23565,6 +23565,8 @@ mal_uint64 mal_src_read_deinterleaved__sinc(mal_src* pSRC, mal_uint64 frameCount
ppNextSamplesOut[iChannel] += outputFramesToRead; ppNextSamplesOut[iChannel] += outputFramesToRead;
} }
totalOutputFramesRead += outputFramesToRead;
mal_uint32 prevWindowPosInSamples = pSRC->sinc.windowPosInSamples; mal_uint32 prevWindowPosInSamples = pSRC->sinc.windowPosInSamples;
pSRC->sinc.timeIn += (outputFramesToRead * factor); pSRC->sinc.timeIn += (outputFramesToRead * factor);
...@@ -23616,8 +23618,6 @@ mal_uint64 mal_src_read_deinterleaved__sinc(mal_src* pSRC, mal_uint64 frameCount ...@@ -23616,8 +23618,6 @@ mal_uint64 mal_src_read_deinterleaved__sinc(mal_src* pSRC, mal_uint64 frameCount
} }
} }
} }
totalOutputFramesRead += outputFramesToRead;
} }
return totalOutputFramesRead; return totalOutputFramesRead;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment