From 342e779c32ea349cb8a3a58f5d71226afad30d22 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Thu, 15 Jan 2015 20:49:00 -0800 Subject: [PATCH] GBA Audio: Properly initialize audio FIFO channels --- CHANGES | 1 + src/gba/gba-audio.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 2b9e1a2fe..e80276056 100644 --- a/CHANGES +++ b/CHANGES @@ -34,6 +34,7 @@ Bugfixes: - GBA Memory: Fix initial DMA state - GBA BIOS: Fix HuffUnComp boundary conditions - GBA Video: Fix mode 0 being able to read tiles above appropriate tile range + - GBA Audio: Properly initialize audio FIFO channels Misc: - Qt: Disable sync to video by default - GBA: Exit cleanly on FATAL if the port supports it diff --git a/src/gba/gba-audio.c b/src/gba/gba-audio.c index d561685ce..ca527e1e1 100644 --- a/src/gba/gba-audio.c +++ b/src/gba/gba-audio.c @@ -43,8 +43,8 @@ void GBAAudioReset(struct GBAAudio* audio) { audio->ch2 = (struct GBAAudioChannel2) { .envelope = { .nextStep = INT_MAX } }; audio->ch3 = (struct GBAAudioChannel3) { .bank = { .bank = 0 } }; audio->ch4 = (struct GBAAudioChannel4) { .envelope = { .nextStep = INT_MAX } }; - audio->chA.dmaSource = 0; - audio->chB.dmaSource = 0; + audio->chA.dmaSource = 1; + audio->chB.dmaSource = 2; audio->chA.sample = 0; audio->chB.sample = 0; audio->eventDiff = 0;