From e3aaf8284b81e7217a45a06023f55d11cfa5a844 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 11 Mar 2013 08:36:47 -0700 Subject: [PATCH] Always say the second buffer isn't needed. --- Core/HLE/sceAtrac.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Core/HLE/sceAtrac.cpp b/Core/HLE/sceAtrac.cpp index d7b7c54f93..507dff299f 100644 --- a/Core/HLE/sceAtrac.cpp +++ b/Core/HLE/sceAtrac.cpp @@ -27,8 +27,9 @@ #include "sceKernel.h" #include "sceUtility.h" -#define ATRAC_ERROR_API_FAIL 0x80630002 -#define ATRAC_ERROR_ALL_DATA_DECODED 0x80630024 +#define ATRAC_ERROR_API_FAIL 0x80630002 +#define ATRAC_ERROR_ALL_DATA_DECODED 0x80630024 +#define ATRAC_ERROR_SECOND_BUFFER_NOT_NEEDED 0x80630022 #define AT3_MAGIC 0x0270 #define AT3_PLUS_MAGIC 0xFFFE @@ -371,9 +372,10 @@ u32 sceAtracGetSecondBufferInfo(int atracID, u32 outposAddr, u32 outBytesAddr) if (!atrac) { //return -1; } - Memory::Write_U32(0, outposAddr); // outpos - Memory::Write_U32(0x10000, outBytesAddr); // outBytes - return 0; + Memory::Write_U32(0, outposAddr); + Memory::Write_U32(0x10000, outBytesAddr); + // TODO: Maybe don't write the above? + return ATRAC_ERROR_SECOND_BUFFER_NOT_NEEDED; } u32 sceAtracGetSoundSample(int atracID, u32 outEndSampleAddr, u32 outLoopStartSampleAddr, u32 outLoopEndSampleAddr)