Atrac: Move currentSample on finish.

This seems to be what happens, and allows remaining frames to calculate
properly in some cases where it wasn't before.
This commit is contained in:
Unknown W. Brackets 2016-01-01 11:34:56 -08:00
parent f88a82e0a6
commit 182d281750

View File

@ -1090,6 +1090,10 @@ u32 _AtracDecodeData(int atracID, u8 *outbuf, u32 outbufPtr, u32 *SamplesNum, u3
}
} else if (hitEnd) {
finishFlag = 1;
// Still move forward, so we know that we've read everything.
// This seems to be reflected in the context as well.
atrac->currentSample += atrac->samplesPerFrame();
}
*finish = finishFlag;