1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-23 03:32:32 +00:00

Ensures safe shutdown.

This commit is contained in:
Thomas Harte 2020-11-12 21:44:51 -05:00
parent 81969bbea9
commit 715a1b9cd6

View File

@ -52,7 +52,7 @@ class ConcreteMachine:
public:
ConcreteMachine(const Analyser::Static::AppleIIgs::Target &target, const ROMMachine::ROMFetcher &rom_fetcher) :
m65816_(*this),
iwm_(CLOCK_RATE),
iwm_(CLOCK_RATE / 2),
drives_{
{CLOCK_RATE / 2, true},
{CLOCK_RATE / 2, true}
@ -122,6 +122,10 @@ class ConcreteMachine:
insert_media(target.media);
}
~ConcreteMachine() {
audio_queue_.flush();
}
void run_for(const Cycles cycles) override {
m65816_.run_for(cycles);
}