Skip to content

Commit

Permalink
Update audio when writing to $4011
Browse files Browse the repository at this point in the history
  • Loading branch information
binji committed Aug 8, 2023
1 parent 29852b2 commit 6b9197e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/emulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6b9197e

Please sign in to comment.