audio, fix sound issues in some intros

This commit is contained in:
kub 2020-07-16 19:05:46 +02:00
parent 713e3a1c5b
commit 6f7beab435
2 changed files with 7 additions and 3 deletions

View file

@ -169,8 +169,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 every 4th scanline)
if (len >> 20 <= PicoIn.sndRate >> 12)
// don't do this too often (about once every canline)
if (len >> 16 <= PicoIn.sndRate >> 10)
return;
// update position and calculate buffer offset and length