diff --git a/mednafen/psx/spu.cpp b/mednafen/psx/spu.cpp index b64ff2b61..513628aef 100644 --- a/mednafen/psx/spu.cpp +++ b/mednafen/psx/spu.cpp @@ -1452,8 +1452,8 @@ int PS_SPU::StateAction(StateMem *sm, int load, int data_only) Voices[i].LoopAddr &= 0x3FFFF; } - if(clock_divider <= 0 || clock_divider > 768) - clock_divider = 768; + if(clock_divider <= 0 || clock_divider > spu_samples*768) + clock_divider = spu_samples*768; RWAddr &= 0x3FFFF; CWA &= 0x1FF;