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 
17  [[nodiscard]] AudioInputDevice& getPluggedAudioDev() const;
18 
19  // Connector
20  [[nodiscard]] std::string_view getDescription() const final;
21  [[nodiscard]] std::string_view getClass() const final;
22 
23  [[nodiscard]] 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
std::string_view getClass() const final
A Connector belong to a certain class.
AudioInputConnector(PluggingController &pluggingController, std::string name)
int16_t readSample(EmuTime::param time) const
void serialize(Archive &ar, unsigned version)
AudioInputDevice & getPluggedAudioDev() const
std::string_view getDescription() const final
Get a description for this connector.
Represents something you can plug devices into.
Definition: Connector.hh:21
Central administration of Connectors and Pluggables.
This file implemented 3 utility functions:
Definition: Autofire.cc:9