From 58df8144ec83c3e8917983d2b9d6a9c8d1e4009f Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 25 Jun 2022 01:44:50 +0300 Subject: [PATCH] Fix audio artifacts in the SGB jingle --- Core/apu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Core/apu.c b/Core/apu.c index d3341ef..62185e6 100644 --- a/Core/apu.c +++ b/Core/apu.c @@ -225,6 +225,8 @@ static void render(GB_gameboy_t *gb) gb->apu_output.last_update[i] = 0; } gb->apu_output.cycles_since_render = 0; + + if (gb->sgb && gb->sgb->intro_animation < GB_SGB_INTRO_ANIMATION_LENGTH) return; GB_sample_t filtered_output = gb->apu_output.highpass_mode? (GB_sample_t) {output.left - gb->apu_output.highpass_diff.left,