From 6651998e9fa9bfe7b686c9816f1a51eed68674bc Mon Sep 17 00:00:00 2001 From: kub Date: Fri, 10 Sep 2021 17:58:32 +0200 Subject: [PATCH] sound, fix for ym2612 (sonic 1 intro and others) --- pico/sound/sound.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pico/sound/sound.c b/pico/sound/sound.c index 76a9be84..5cb6832e 100644 --- a/pico/sound/sound.c +++ b/pico/sound/sound.c @@ -236,8 +236,8 @@ PICO_INTERNAL void PsndDoFM(int cyc_to) // Q16, number of samples since last call len = (cyc_to * Pico.snd.clkl_mult) - Pico.snd.fm_pos; - // don't do this too often (about once every scanline) - if (len >> 16 <= PicoIn.sndRate >> 10) + // don't do this too often (about once every 4 scanlines) + if (len <= PicoIn.sndRate << 4) // Q16, (PicoIn.sndRate << 16) >> 12 return; // update position and calculate buffer offset and length -- 2.39.5