sound, fix pcm/pwm handling wrt fast forward (mcd, 32x, pico)

This commit is contained in:
kub 2022-02-07 21:08:34 +00:00
parent 8eada9d64c
commit 9f1d5acdb4
5 changed files with 35 additions and 19 deletions

View file

@ -128,7 +128,7 @@ void pcd_pcm_update(s32 *buf32, int length, int stereo)
pcd_pcm_sync(SekCyclesDoneS68k());
if (!Pico_mcd->pcm_mixbuf_dirty || !(PicoIn.opt & POPT_EN_MCD_PCM))
if (!Pico_mcd->pcm_mixbuf_dirty || !(PicoIn.opt & POPT_EN_MCD_PCM) || !buf32)
goto out;
step = (Pico_mcd->pcm_mixpos << 16) / length;