From: kub Date: Fri, 10 Sep 2021 15:58:32 +0000 (+0200) Subject: sound, fix for ym2612 (sonic 1 intro and others) X-Git-Tag: v2.00~496 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6651998e9fa9bfe7b686c9816f1a51eed68674bc;p=picodrive.git sound, fix for ym2612 (sonic 1 intro and others) --- 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