openMSX
AudioInputConnector.hh
Go to the documentation of this file.
1 #ifndef AUDIOINPUTCONNECTOR_HH
2 #define AUDIOINPUTCONNECTOR_HH
3 
4 #include "Connector.hh"
5 #include <cstdint>
6 
7 namespace openmsx {
8 
9 class AudioInputDevice;
10 
11 class AudioInputConnector final : public Connector
12 {
13 public:
14  AudioInputConnector(PluggingController& pluggingController,
15  std::string name);
16 
18 
19  // Connector
20  std::string_view getDescription() const final override;
21  std::string_view getClass() const final override;
22 
23  int16_t readSample(EmuTime::param time) const;
24 
25  template<typename Archive>
26  void serialize(Archive& ar, unsigned version);
27 };
28 
29 } // namespace openmsx
30 
31 #endif
openmsx::AudioInputConnector::getDescription
std::string_view getDescription() const final override
Get a description for this connector.
Definition: AudioInputConnector.cc:17
openmsx::AudioInputConnector
Definition: AudioInputConnector.hh:12
openmsx::AudioInputConnector::getPluggedAudioDev
AudioInputDevice & getPluggedAudioDev() const
Definition: AudioInputConnector.cc:32
openmsx::AudioInputConnector::AudioInputConnector
AudioInputConnector(PluggingController &pluggingController, std::string name)
Definition: AudioInputConnector.cc:10
openmsx::AudioInputConnector::readSample
int16_t readSample(EmuTime::param time) const
Definition: AudioInputConnector.cc:27
openmsx::AudioInputConnector::getClass
std::string_view getClass() const final override
A Connector belong to a certain class.
Definition: AudioInputConnector.cc:22
Connector.hh
openmsx::AudioInputConnector::serialize
void serialize(Archive &ar, unsigned version)
Definition: AudioInputConnector.cc:38
openmsx::Connector
Represents something you can plug devices into.
Definition: Connector.hh:21
openmsx::AudioInputDevice
Definition: AudioInputDevice.hh:10
openmsx::PluggingController
Central administration of Connectors and Pluggables.
Definition: PluggingController.hh:22
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5