1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-10-04 01:57:54 +00:00

Amiga only, temporarily: attempt to reduce audio maintenance costs.

This commit is contained in:
Thomas Harte 2022-07-07 16:41:49 -04:00
parent 3e2a6ef3f4
commit fc0dc4e5e2
2 changed files with 9 additions and 3 deletions

View File

@ -209,14 +209,17 @@ class ConcreteMachine:
chipset_.set_scan_target(scan_target); chipset_.set_scan_target(scan_target);
} }
Outputs::Display::ScanStatus get_scaled_scan_status() const { Outputs::Display::ScanStatus get_scaled_scan_status() const final {
return chipset_.get_scaled_scan_status(); return chipset_.get_scaled_scan_status();
} }
// MARK: - MachineTypes::TimedMachine. // MARK: - MachineTypes::TimedMachine.
void run_for(const Cycles cycles) { void run_for(const Cycles cycles) final {
mc68000_.run_for(cycles); mc68000_.run_for(cycles);
}
void flush_output() final {
flush(); flush();
} }
@ -228,7 +231,7 @@ class ConcreteMachine:
// MARK: - MachineTypes::JoystickMachine. // MARK: - MachineTypes::JoystickMachine.
const std::vector<std::unique_ptr<Inputs::Joystick>> &get_joysticks() { const std::vector<std::unique_ptr<Inputs::Joystick>> &get_joysticks() final {
return chipset_.get_joysticks(); return chipset_.get_joysticks();
} }

View File

@ -61,6 +61,9 @@ class TimedMachine {
virtual float get_confidence() { return 0.5f; } virtual float get_confidence() { return 0.5f; }
virtual std::string debug_type() { return ""; } virtual std::string debug_type() { return ""; }
/// Ensures all locally-buffered output is posted onward.
virtual void flush_output() {}
protected: protected:
/// Runs the machine for @c cycles. /// Runs the machine for @c cycles.
virtual void run_for(const Cycles cycles) = 0; virtual void run_for(const Cycles cycles) = 0;