From 3b8db3ada6bf8681c0890a0f8d06a18cc08516b8 Mon Sep 17 00:00:00 2001 From: Maschell <Maschell@gmx.de> Date: Tue, 4 Feb 2025 16:00:33 +0100 Subject: [PATCH] Fix "TV left, DRC right" audio mode to actually output the TV left and the Gampad right --- src/function_patcher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/function_patcher.cpp b/src/function_patcher.cpp index 0bd3bfc..14fc1ba 100644 --- a/src/function_patcher.cpp +++ b/src/function_patcher.cpp @@ -164,7 +164,7 @@ void DoAudioMagic(int16_t *addr, uint32_t size, bool isDRC, AIInitDMAfn targetFu } else if (val < -0x8000) { val = 0x8000; } - addr[i] = (int16_t) val; + addr[i + 1] = (int16_t) val; // Mix down DRC to MONO and put it in the right channel val = (((int32_t) DRCCopy[i] + (int32_t) DRCCopy[i + 1]) >> 1); if (val > 0x7FFF) { @@ -172,7 +172,7 @@ void DoAudioMagic(int16_t *addr, uint32_t size, bool isDRC, AIInitDMAfn targetFu } else if (val < -0x8000) { val = 0x8000; } - addr[i + 1] = (int16_t) val; + addr[i] = (int16_t) val; } } break;