games/snes: fix dspclock signed overflow (music stoping for minute)

front
cinap_lenrek 2014-03-23 20:16:24 +01:00
parent e118352324
commit 0df733f94b
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}