Fix "TV left, DRC right" audio mode to actually output the TV left and the Gampad right

This commit is contained in:
Maschell 2025-02-04 16:00:33 +01:00
parent 39ef5f1730
commit 3b8db3ada6

View File

@ -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;