From 09dd47c6de9ee9d00728d06eb4cf8468300904bc Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Fri, 19 Jan 2018 19:56:39 +0200 Subject: [PATCH] =?UTF-8?q?Fixed=20unintentional=20delay=20in=20NR50=20and?= =?UTF-8?q?=20NR51=E2=80=99s=20effects?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Core/apu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Core/apu.c b/Core/apu.c index 363fb9b..69bc5ea 100755 --- a/Core/apu.c +++ b/Core/apu.c @@ -469,6 +469,7 @@ void GB_apu_write(GB_gameboy_t *gb, uint8_t reg, uint8_t value) /* Globals */ case GB_IO_NR50: case GB_IO_NR51: + gb->io_registers[reg] = value; /* These registers affect the output of all 4 channels (but not the output of the PCM registers).*/ /* We call update_samples with the current value so the APU output is updated with the new outputs */ for (unsigned i = GB_N_CHANNELS; i--;) {