Skip to content

Commit

Permalink
Fix SPU samples setting with loading/runahead
Browse files Browse the repository at this point in the history
  • Loading branch information
ZachCook committed Oct 1, 2022
1 parent 8ae372a commit 1e71531
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mednafen/psx/spu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1e71531

Please sign in to comment.