Fix an APU regression that caused some games in DMG mode to play in the wrong pitch

This commit is contained in:
Lior Halphon 2021-03-01 21:44:54 +02:00
parent d2ed1343e5
commit ea97c1dc0b

View File

@ -596,7 +596,7 @@ void GB_apu_run(GB_gameboy_t *gb)
else { else {
/* Split it into two */ /* Split it into two */
cycles -= gb->apu.channel_4_dmg_delayed_start; 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); GB_apu_run(gb);
} }
} }