mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-17 12:47:46 +00:00
Fix GetBufferInfoForResetting
This commit is contained in:
parent
2fe898cda8
commit
38a5233dd4
@ -722,6 +722,10 @@ u32 sceAtracGetBufferInfoForResetting(int atracID, int sample, u32 bufferInfoAdd
|
||||
// minWritebytes should not be bigger than writeablebytes
|
||||
minWritebytes = std::min(minWritebytes, (int)atrac->first.writableBytes);
|
||||
|
||||
if (atrac->first.fileoffset <= 2*atrac->atracBufSize){
|
||||
Sampleoffset = atrac->first.fileoffset;
|
||||
}
|
||||
|
||||
// If we've already loaded everything, the answer is 0.
|
||||
if (atrac->first.size >= atrac->first.filesize) {
|
||||
Sampleoffset = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user