From 72cc39f92927199177a6613af21a1b3e6df74190 Mon Sep 17 00:00:00 2001 From: sum2012 Date: Mon, 25 Jan 2021 20:14:02 +0800 Subject: [PATCH 1/2] sceMp3Init:Add layerBits and versionBits information --- Core/HLE/sceMp3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/HLE/sceMp3.cpp b/Core/HLE/sceMp3.cpp index d012e2de3c..07372240ad 100644 --- a/Core/HLE/sceMp3.cpp +++ b/Core/HLE/sceMp3.cpp @@ -403,7 +403,7 @@ static int sceMp3Init(u32 mp3) { ctx->MaxOutputSample = CalculateMp3SamplesPerFrame(versionBits, layerBits); ctx->freq = ctx->SamplingRate; - DEBUG_LOG(ME, "sceMp3Init(): channels=%i, samplerate=%iHz, bitrate=%ikbps", ctx->Channels, ctx->SamplingRate, ctx->BitRate); + DEBUG_LOG(ME, "sceMp3Init(): channels=%i, samplerate=%iHz, bitrate=%ikbps, layerBits=%d ,versionBits=%d", ctx->Channels, ctx->SamplingRate, ctx->BitRate, layerBits, versionBits); if (layerBits != 1) { // TODO: Should return ERROR_AVCODEC_INVALID_DATA. From e7e36ca21a9906dcb420425c2542416c40730c0e Mon Sep 17 00:00:00 2001 From: sum2012 Date: Mon, 25 Jan 2021 20:27:56 +0800 Subject: [PATCH 2/2] Add header information --- Core/HLE/sceMp3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/HLE/sceMp3.cpp b/Core/HLE/sceMp3.cpp index 07372240ad..c3e0bb92ba 100644 --- a/Core/HLE/sceMp3.cpp +++ b/Core/HLE/sceMp3.cpp @@ -403,7 +403,7 @@ static int sceMp3Init(u32 mp3) { ctx->MaxOutputSample = CalculateMp3SamplesPerFrame(versionBits, layerBits); ctx->freq = ctx->SamplingRate; - DEBUG_LOG(ME, "sceMp3Init(): channels=%i, samplerate=%iHz, bitrate=%ikbps, layerBits=%d ,versionBits=%d", ctx->Channels, ctx->SamplingRate, ctx->BitRate, layerBits, versionBits); + DEBUG_LOG(ME, "sceMp3Init(): channels=%i, samplerate=%iHz, bitrate=%ikbps, layerBits=%d ,versionBits=%d,HEADER: %08x", ctx->Channels, ctx->SamplingRate, ctx->BitRate, layerBits, versionBits, header); if (layerBits != 1) { // TODO: Should return ERROR_AVCODEC_INVALID_DATA.