games/snes: fix dspclock signed overflow (music stoping for minute)
This commit is contained in:
parent
e118352324
commit
0df733f94b
1 changed files with 2 additions and 2 deletions
|
@ -284,11 +284,11 @@ usage:
|
|||
}
|
||||
while(spcclock < 0)
|
||||
spcclock += spcstep() * SPCDIV;
|
||||
if(stimerclock >= SPCDIV*16){
|
||||
while(stimerclock >= SPCDIV*16){
|
||||
spctimerstep();
|
||||
stimerclock -= SPCDIV*16;
|
||||
}
|
||||
if(dspclock >= SPCDIV){
|
||||
while(dspclock >= SPCDIV){
|
||||
dspstep();
|
||||
dspclock -= SPCDIV;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue