mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 23:40:39 +00:00
Always return <= max samples for atrac.
This commit is contained in:
parent
160c59cf9b
commit
5b6f97955b
@ -326,6 +326,8 @@ u32 sceAtracGetNextSample(int atracID, u32 outNAddr)
|
||||
} else {
|
||||
// TODO: This is not correct.
|
||||
u32 numSamples = (atrac->first.size - atrac->decodePos) / (sizeof(s16) * 2);
|
||||
if (numSamples > ATRAC_MAX_SAMPLES)
|
||||
numSamples = ATRAC_MAX_SAMPLES;
|
||||
Memory::Write_U32(numSamples, outNAddr);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user