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)
|
while(spcclock < 0)
|
||||||
spcclock += spcstep() * SPCDIV;
|
spcclock += spcstep() * SPCDIV;
|
||||||
if(stimerclock >= SPCDIV*16){
|
while(stimerclock >= SPCDIV*16){
|
||||||
spctimerstep();
|
spctimerstep();
|
||||||
stimerclock -= SPCDIV*16;
|
stimerclock -= SPCDIV*16;
|
||||||
}
|
}
|
||||||
if(dspclock >= SPCDIV){
|
while(dspclock >= SPCDIV){
|
||||||
dspstep();
|
dspstep();
|
||||||
dspclock -= SPCDIV;
|
dspclock -= SPCDIV;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue