From dda51ec845531f334de3aa5080c94045cafa3522 Mon Sep 17 00:00:00 2001 From: Silent Date: Fri, 3 Mar 2017 19:02:04 +0100 Subject: [PATCH] Correct samples counting --- SilentPatchSA/FLACDecoderSA.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/SilentPatchSA/FLACDecoderSA.cpp b/SilentPatchSA/FLACDecoderSA.cpp index 74e5a11..15d3169 100644 --- a/SilentPatchSA/FLACDecoderSA.cpp +++ b/SilentPatchSA/FLACDecoderSA.cpp @@ -221,6 +221,7 @@ uint32_t CAEFLACDecoder::FillBuffer(void* pBuf, uint32_t nLen) } } + m_currentSample += samplesThisIteration; m_bufferCursor += samplesThisIteration; samplesToDecode -= samplesThisIteration; bytesDecoded += samplesThisIteration * 2 * sizeof(int16_t);