mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-04 23:07:46 -04:00
sound, fix for ym2612 (sonic 1 intro and others)
This commit is contained in:
parent
ff42e515ae
commit
6651998e9f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue