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

This commit is contained in:
cinap_lenrek 2014-03-23 20:16:24 +01:00
parent e118352324
commit 0df733f94b

View file

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