mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Update sceAtracAddStreamData
This commit is contained in:
parent
e45f9f63a4
commit
1553614756
2 changed files with 3 additions and 6 deletions
|
@ -785,7 +785,7 @@ int Atrac::AddStreamData(u32 bytesToAdd) {
|
|||
u32 readOffset;
|
||||
CalculateStreamInfo(&readOffset);
|
||||
if (bytesToAdd > first_.writableBytes)
|
||||
return hleLogWarning(Log::ME, SCE_ERROR_ATRAC_ADD_DATA_IS_TOO_BIG, "too many bytes");
|
||||
return SCE_ERROR_ATRAC_ADD_DATA_IS_TOO_BIG;
|
||||
|
||||
if (bytesToAdd > 0) {
|
||||
first_.fileoffset = readOffset;
|
||||
|
@ -1136,7 +1136,7 @@ u32 Atrac::ResetPlayPosition(int sample, int bytesWrittenFirstBuf, int bytesWrit
|
|||
}
|
||||
|
||||
WriteContextToPSPMem();
|
||||
return 0;
|
||||
return hleNoLog(0);
|
||||
}
|
||||
|
||||
void Atrac::InitLowLevel(u32 paramsAddr, bool jointStereo) {
|
||||
|
|
|
@ -246,10 +246,7 @@ static u32 sceAtracAddStreamData(int atracID, u32 bytesToAdd) {
|
|||
}
|
||||
|
||||
int ret = atrac->AddStreamData(bytesToAdd);
|
||||
if (ret < 0) {
|
||||
return ret;
|
||||
}
|
||||
return hleLogDebug(Log::ME, 0);
|
||||
return hleLogDebugOrError(Log::ME, ret);
|
||||
}
|
||||
|
||||
// Note that outAddr being null is completely valid here, used to skip data.
|
||||
|
|
Loading…
Add table
Reference in a new issue