mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 23:40:39 +00:00
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:
parent
f88a82e0a6
commit
182d281750
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user