]> Shamusworld >> Repos - stargem2/blobdiff - src/sound.cpp
This time, for sure!
[stargem2] / 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;