From 5f8548b8dca9a8e8979c1996ed8333e5dc043420 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Mon, 29 Jun 2015 01:30:59 -0700 Subject: [PATCH] GBA Audio: Fix 8-bit writes to audio channel 3 frequency --- CHANGES | 1 + src/gba/io.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index ad9b36312..4ec68f4bf 100644 --- a/CHANGES +++ b/CHANGES @@ -51,6 +51,7 @@ Bugfixes: - GBA: Fix timing of reading from timer registers - Util: Allow loading IPS patches that grow the ROM - GBA Audio: Fix sample order in audio channel 3 + - GBA Audio: Fix 8-bit writes to audio channel 3 frequency Misc: - Qt: Handle saving input settings better - Debugger: Free watchpoints in addition to breakpoints diff --git a/src/gba/io.c b/src/gba/io.c index c9957f301..a93227669 100644 --- a/src/gba/io.c +++ b/src/gba/io.c @@ -333,7 +333,7 @@ void GBAIOWrite(struct GBA* gba, uint32_t address, uint16_t value) { case REG_SOUND3CNT_X: GBAAudioWriteSOUND3CNT_X(&gba->audio, value); // TODO: The low bits need to not be readable, but still 8-bit writable - value &= 0x43FF; + value &= 0x47FF; break; case REG_SOUND4CNT_LO: GBAAudioWriteSOUND4CNT_LO(&gba->audio, value);