Set the buffer values in sceAtracSetHalfwayBuffer.

We set them in the GetID() one, so ought to here as well.
This commit is contained in:
Unknown W. Brackets 2013-04-13 09:24:55 -07:00
parent d92dbf8f6d
commit e5c4894bce

View File

@ -441,6 +441,15 @@ u32 sceAtracResetPlayPosition(int atracID, int sample, int bytesWrittenFirstBuf,
u32 sceAtracSetHalfwayBuffer(int atracID, u32 halfBuffer, u32 readSize, u32 halfBufferSize)
{
ERROR_LOG(HLE, "UNIMPL sceAtracSetHalfwayBuffer(%i, %08x, %8x, %8x)", atracID, halfBuffer, readSize, halfBufferSize);
if (readSize > halfBufferSize)
return ATRAC_ERROR_INCORRECT_READ_SIZE;
Atrac *atrac = getAtrac(atracID);
if (atrac) {
atrac->first.addr = halfBuffer;
atrac->first.size = halfBufferSize;
atrac->Analyze();
}
return 0;
}