Esempio n. 1
0
int sceAtracSetAA3DataAndGetID(u32 buffer, int bufferSize, int fileSize, u32 metadataSizeAddr)
{
	ERROR_LOG_LIMITED(HLE, "UNIMPL sceAtracSetAA3DataAndGetID(%08x, %i, %i, %08x)", buffer, bufferSize, fileSize, metadataSizeAddr);
	int codecType = getCodecType(buffer);

	Atrac *atrac = new Atrac();
	atrac->first.addr = buffer;
	atrac->first.size = bufferSize;
	return createAtrac(atrac);
}
Esempio n. 2
0
int sceAtracSetHalfwayBufferAndGetID(int atracID, u32 halfBuffer, u32 readSize, u32 halfBufferSize)
{
	ERROR_LOG_LIMITED(HLE, "UNIMPL sceAtracSetHalfwayBufferAndGetID(%i, %08x, %08x, %08x)", atracID, halfBuffer, readSize, halfBufferSize);
	int codecType = getCodecType(halfBuffer);

	Atrac *atrac = new Atrac();
	atrac->first.addr = halfBuffer;
	atrac->first.size = halfBufferSize;
	return createAtrac(atrac);
}
Esempio n. 3
0
int sceAtracSetDataAndGetID(u32 buffer, u32 bufferSize)
{	
	ERROR_LOG_LIMITED(HLE, "UNIMPL sceAtracSetDataAndGetID(%08x, %08x)", buffer, bufferSize);
	int codecType = getCodecType(buffer);

	Atrac *atrac = new Atrac();
	atrac->first.addr = buffer;
	atrac->first.size = bufferSize;
	return createAtrac(atrac);
}
Esempio n. 4
0
u32 sceAtracGetAtracID(int codecType)
{
	INFO_LOG(HLE, "sceAtracGetAtracID(%i)", codecType);
	if (codecType < 0x1000 || codecType > 0x1001)
		return ATRAC_ERROR_INVALID_CODECTYPE;

	int atracID = createAtrac(new Atrac);
	Atrac *atrac = getAtrac(atracID);
	if (!atrac)
		return ATRAC_ERROR_NO_ATRACID;
	atrac->codeType = codecType;
	return atracID;
}
Esempio n. 5
0
int sceAtracSetHalfwayBufferAndGetID(u32 halfBuffer, u32 readSize, u32 halfBufferSize)
{
	ERROR_LOG(HLE, "UNIMPL sceAtracSetHalfwayBufferAndGetID(%08x, %08x, %08x)", halfBuffer, readSize, halfBufferSize);
	if (readSize > halfBufferSize)
		return ATRAC_ERROR_INCORRECT_READ_SIZE;
	int codecType = getCodecType(halfBuffer);

	Atrac *atrac = new Atrac();
	atrac->first.addr = halfBuffer;
	atrac->first.size = halfBufferSize;
	atrac->Analyze();
	return createAtrac(atrac);
}
Esempio n. 6
0
u32 sceAtracGetAtracID(int codecType)
{
	ERROR_LOG(HLE, "FAKE sceAtracGetAtracID(%i)", codecType);
	return createAtrac(new Atrac);
}