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);