From cf9a5d595bd5fa7516311e19f07a31ff4ac5ebea Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 19 Mar 2021 23:33:46 -0400 Subject: [PATCH] Completes piping of audio. --- Machines/Sinclair/ZXSpectrum/ZXSpectrum.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Machines/Sinclair/ZXSpectrum/ZXSpectrum.cpp b/Machines/Sinclair/ZXSpectrum/ZXSpectrum.cpp index 84d5bd632..2ea43ca06 100644 --- a/Machines/Sinclair/ZXSpectrum/ZXSpectrum.cpp +++ b/Machines/Sinclair/ZXSpectrum/ZXSpectrum.cpp @@ -41,6 +41,7 @@ using Model = Analyser::Static::ZXSpectrum::Target::Model; template class ConcreteMachine: public Configurable::Device, public Machine, + public MachineTypes::AudioProducer, public MachineTypes::MappedKeyboardMachine, public MachineTypes::MediaTarget, public MachineTypes::ScanProducer, @@ -343,6 +344,12 @@ template class ConcreteMachine: set_use_fast_tape(); } + // MARK: - AudioProducer. + + Outputs::Speaker::Speaker *get_speaker() override { + return &speaker_; + } + private: CPU::Z80::Processor z80_;