]> Shamusworld >> Repos - stargem2/commitdiff
This time, for sure!
authorShamus Hammons <jlhamm@acm.org>
Wed, 11 Feb 2009 05:04:18 +0000 (05:04 +0000)
committerShamus Hammons <jlhamm@acm.org>
Wed, 11 Feb 2009 05:04:18 +0000 (05:04 +0000)
src/sound.cpp

index 6f06dcde7787e80b28a82eed222a6ceb45fda51a..281aee286f8894a56175a9141a9cf26a8aa54085 100755 (executable)
@@ -117,10 +117,11 @@ while (!done)
 */
 #ifdef CYCLE_EXACT_SOUND
                Execute6808(&soundCPU, time);
+               soundCPU.clock -= time;
 #else
                Execute6808(&soundCPU, 20);
-#endif
                soundCPU.clock -= 20;
+#endif
                buffer[cnt++] = sram[0x0400];                           // Fill the buffer with the PIA output value
 #ifdef CYCLE_EXACT_SOUND
                overflow += 0.289115646;