From 6b9197ea19cab85970534de238eb9d2c622d7153 Mon Sep 17 00:00:00 2001 From: Ben Smith Date: Tue, 8 Aug 2023 09:31:46 -0700 Subject: [PATCH] Update audio when writing to $4011 --- src/emulator.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/emulator.c b/src/emulator.c index 963185b..bc0bc45 100644 --- a/src/emulator.c +++ b/src/emulator.c @@ -1325,7 +1325,10 @@ static void cpu_write(E *e, u16 addr, u8 val) { } if (!(val & 0x80)) { c->irq &= ~IRQ_DMC; } goto apu; - case 0x11: a->dmcout = val & 0x7f; goto apu; + case 0x11: + a->dmcout = val & 0x7f; + a->update = true; + goto apu; case 0x12: case 0x13: goto apu; case 0x15: