mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
sound, fix pcm/pwm handling wrt fast forward (mcd, 32x, pico)
This commit is contained in:
parent
8eada9d64c
commit
9f1d5acdb4
5 changed files with 35 additions and 19 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue