From: kub Date: Sat, 30 Apr 2022 12:04:28 +0000 (+0200) Subject: sound, minor FM filtering optimization X-Git-Tag: v2.00~308 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27b26d0478bc4efb222dee447b4cbe1f9933173d;p=picodrive.git sound, minor FM filtering optimization --- diff --git a/pico/sound/sound.c b/pico/sound/sound.c index ae4bd3d8..456d211b 100644 --- a/pico/sound/sound.c +++ b/pico/sound/sound.c @@ -89,7 +89,7 @@ static void YM2612_setup_FIR(int inrate, int outrate, int stereo) mindiff = diff; Pico.snd.fm_fir_mul = mul; Pico.snd.fm_fir_div = div; - if (abs(mindiff) <= inrate/1000) break; // below error limit + if (abs(mindiff) <= inrate/1000+1) break; // below error limit } } printf("FM polyphase FIR ratio=%d/%d error=%.3f%%\n",