From a58db7e62d4cafc2bded9744106200604dd9b7b4 Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Sat, 5 May 2018 01:08:09 +0200 Subject: [PATCH] Make sure that all audio samples are generated during each timeslice. --- src/emucore/M6502.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/emucore/M6502.cxx b/src/emucore/M6502.cxx index e8066aa5c..6005fcaad 100644 --- a/src/emucore/M6502.cxx +++ b/src/emucore/M6502.cxx @@ -218,12 +218,13 @@ bool M6502::execute(uInt32 number) // the halt to take effect). This is safe because as we know that the next cycle will be a read // cycle anyway. handleHalt(); +#endif // Make sure that the hardware state matches the current system clock. This is necessary - // to maintain a consistent state for the debugger after stepping. + // to maintain a consistent state for the debugger after stepping and to make sure + // that audio samples are generated for the whole timeslice. mySystem->tia().updateEmulation(); mySystem->m6532().updateEmulation(); -#endif return status; }