2020-04-02 03:19:34 +00:00
|
|
|
//
|
|
|
|
// AudioProducer.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 31/03/2020.
|
|
|
|
// Copyright © 2020 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
2024-01-17 04:34:46 +00:00
|
|
|
#pragma once
|
2020-04-02 03:19:34 +00:00
|
|
|
|
|
|
|
#include "../Outputs/Speaker/Speaker.hpp"
|
|
|
|
|
|
|
|
namespace MachineTypes {
|
|
|
|
|
|
|
|
/*!
|
|
|
|
An AudioProducer is any machine that **might** produce audio. This isn't always knowable statically.
|
|
|
|
*/
|
|
|
|
class AudioProducer {
|
|
|
|
public:
|
|
|
|
/// @returns The speaker that receives this machine's output, or @c nullptr if this machine is mute.
|
|
|
|
virtual Outputs::Speaker::Speaker *get_speaker() = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|