From db7a0bd6b4d26eb7ec7819b90dade0e6eba31584 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sun, 13 Dec 2015 23:36:56 -0800 Subject: [PATCH] Wii: Fix swapped audio channels --- src/platform/wii/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/platform/wii/main.c b/src/platform/wii/main.c index 3fbecd0d3..5252ce85f 100644 --- a/src/platform/wii/main.c +++ b/src/platform/wii/main.c @@ -381,8 +381,9 @@ void _drawFrame(struct GBAGUIRunner* runner, bool faded) { } available &= ~((32 / sizeof(struct GBAStereoSample)) - 1); // Force align to 32 bytes if (available > 0) { - blip_read_samples(runner->context.gba->audio.left, &audioBuffer[currentAudioBuffer][audioBufferSize].left, available, true); - blip_read_samples(runner->context.gba->audio.right, &audioBuffer[currentAudioBuffer][audioBufferSize].right, available, true); + // These appear to be reversed for AUDIO_InitDMA + blip_read_samples(runner->context.gba->audio.left, &audioBuffer[currentAudioBuffer][audioBufferSize].right, available, true); + blip_read_samples(runner->context.gba->audio.right, &audioBuffer[currentAudioBuffer][audioBufferSize].left, available, true); audioBufferSize += available; } if (audioBufferSize == SAMPLES && !AUDIO_GetDMAEnableFlag()) {