Fix audio artifacts in the SGB jingle

This commit is contained in:
Lior Halphon 2022-06-25 01:44:50 +03:00
parent 16913f925b
commit 58df8144ec

View File

@ -225,6 +225,8 @@ static void render(GB_gameboy_t *gb)
gb->apu_output.last_update[i] = 0; gb->apu_output.last_update[i] = 0;
} }
gb->apu_output.cycles_since_render = 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 filtered_output = gb->apu_output.highpass_mode?
(GB_sample_t) {output.left - gb->apu_output.highpass_diff.left, (GB_sample_t) {output.left - gb->apu_output.highpass_diff.left,