ref: 7c775174a5cbbc2156ad6dcc277a5385cd98a009
parent: 40d81ea294aeba6c21e5db628086ef9b49d002fe
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Mar 23 16:16:24 EDT 2014
games/snes: fix dspclock signed overflow (music stoping for minute)
--- a/sys/src/games/snes/snes.c
+++ b/sys/src/games/snes/snes.c
@@ -284,11 +284,11 @@
}
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;
}
--
⑨