Make sure that all audio samples are generated during each timeslice.

This commit is contained in:
Christian Speckner 2018-05-05 01:08:09 +02:00
parent d2c930886b
commit a58db7e62d
1 changed files with 3 additions and 2 deletions

View File

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