mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
The hack way for numSamples may be still
necessary for some games. Just use a better hack way.
This commit is contained in:
parent
7bd3f389c7
commit
41860c5ade
1 changed files with 4 additions and 2 deletions
|
@ -531,11 +531,13 @@ u32 sceAtracDecodeData(int atracID, u32 outAddr, u32 numSamplesAddr, u32 finishF
|
|||
atrac->decodePos = atrac->getDecodePosBySample(atrac->currentSample);
|
||||
|
||||
int finishFlag = 0;
|
||||
if (atrac->loopNum != 0 && (atrac->currentSample >= atrac->loopEndSample)) {
|
||||
if (atrac->loopNum != 0 && (atrac->currentSample >= atrac->loopEndSample ||
|
||||
(numSamples == 0 && atrac->first.size >= atrac->first.filesize))) {
|
||||
atrac->currentSample = atrac->loopStartSample;
|
||||
if (atrac->loopNum > 0)
|
||||
atrac->loopNum --;
|
||||
} else if (atrac->currentSample >= atrac->endSample)
|
||||
} else if (atrac->currentSample >= atrac->endSample ||
|
||||
(numSamples == 0 && atrac->first.size >= atrac->first.filesize))
|
||||
finishFlag = 1;
|
||||
|
||||
Memory::Write_U32(finishFlag, finishFlagAddr);
|
||||
|
|
Loading…
Add table
Reference in a new issue