sound, fix for ym2612 (sonic 1 intro and others)

This commit is contained in:
kub 2021-09-10 17:58:32 +02:00
parent ff42e515ae
commit 6651998e9f

View file

@ -236,8 +236,8 @@ PICO_INTERNAL void PsndDoFM(int cyc_to)
// Q16, number of samples since last call // Q16, number of samples since last call
len = (cyc_to * Pico.snd.clkl_mult) - Pico.snd.fm_pos; len = (cyc_to * Pico.snd.clkl_mult) - Pico.snd.fm_pos;
// don't do this too often (about once every scanline) // don't do this too often (about once every 4 scanlines)
if (len >> 16 <= PicoIn.sndRate >> 10) if (len <= PicoIn.sndRate << 4) // Q16, (PicoIn.sndRate << 16) >> 12
return; return;
// update position and calculate buffer offset and length // update position and calculate buffer offset and length