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
AudioInputDevice & getPluggedAudioDev() const
Represents something you can plug devices into.
Definition: Connector.hh:20
std::string_view getDescription() const final override
Get a description for this connector.
int16_t readSample(EmuTime::param time) const
Central administration of Connectors and Pluggables.
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
std::string_view getClass() const final override
A Connector belong to a certain class.
void serialize(Archive &ar, unsigned version)
AudioInputConnector(PluggingController &pluggingController, std::string name)