mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Revert sceAtracGetSecondBufferInfo().
I don't know if those changes fixed any games, but they look wrong. Reverting fixes Holy Invasion of Privacy and Valkyrie Profile.
This commit is contained in:
parent
5e6e18acd9
commit
993554e873
1 changed files with 8 additions and 0 deletions
|
@ -503,10 +503,18 @@ u32 sceAtracGetSecondBufferInfo(int atracID, u32 outposAddr, u32 outBytesAddr)
|
|||
Memory::Write_U32(0, outBytesAddr);
|
||||
return ATRAC_ERROR_SECOND_BUFFER_NOT_NEEDED;
|
||||
}
|
||||
|
||||
// TODO: When sceAtracIsSecondBufferNeeded() says yes, change this function. Maybe it's wrong anyway.
|
||||
#if 0
|
||||
u32 pos = (((atrac->loopEndSample >> (0x100B - atrac->codeType)) + 1) * atrac->atracBytesPerFrame + atrac->second.fileoffset - 1 ) + 1;
|
||||
Memory::Write_U32(pos, outposAddr);
|
||||
Memory::Write_U32(atrac->second.writableBytes - pos, outBytesAddr);
|
||||
return 0;
|
||||
#else
|
||||
Memory::Write_U32(0, outposAddr);
|
||||
Memory::Write_U32(0, outBytesAddr);
|
||||
return ATRAC_ERROR_SECOND_BUFFER_NOT_NEEDED;
|
||||
#endif
|
||||
}
|
||||
|
||||
u32 sceAtracGetSoundSample(int atracID, u32 outEndSampleAddr, u32 outLoopStartSampleAddr, u32 outLoopEndSampleAddr)
|
||||
|
|
Loading…
Add table
Reference in a new issue