From ea97c1dc0b596204ba546583e8912ae8b7073865 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Mon, 1 Mar 2021 21:44:54 +0200 Subject: [PATCH] Fix an APU regression that caused some games in DMG mode to play in the wrong pitch --- Core/apu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/apu.c b/Core/apu.c index 45b5a67d..b159b2ea 100644 --- a/Core/apu.c +++ b/Core/apu.c @@ -596,7 +596,7 @@ void GB_apu_run(GB_gameboy_t *gb) else { /* Split it into two */ cycles -= gb->apu.channel_4_dmg_delayed_start; - gb->apu.apu_cycles = gb->apu.channel_4_dmg_delayed_start * 2; + gb->apu.apu_cycles = gb->apu.channel_4_dmg_delayed_start * 4; GB_apu_run(gb); } }