Atrac: Correct stream offset after non-loop end.

This commit is contained in:
Unknown W. Brackets 2016-01-18 17:17:14 -08:00
parent 036c965cf5
commit 3130b7a489

View file

@ -1030,7 +1030,10 @@ void Atrac::CalculateStreamInfo(u32 *outReadOffset) {
if (readOffset >= first_.filesize) {
if (bufferState_ == ATRAC_STATUS_STREAMED_WITHOUT_LOOP) {
// We don't need anything more, so all 0s.
readOffset = 0;
first_.offset = 0;
first_.writableBytes = 0;
} else {
readOffset = dataOff_;
}