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
7namespace openmsx {
8
9class AudioInputDevice;
10
11class AudioInputConnector final : public Connector
12{
13public:
14 AudioInputConnector(PluggingController& pluggingController,
15 std::string name);
16
17 [[nodiscard]] AudioInputDevice& getPluggedAudioDev() const;
18
19 // Connector
20 [[nodiscard]] std::string_view getDescription() const override;
21 [[nodiscard]] std::string_view getClass() const override;
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
int16_t readSample(EmuTime::param time) const
std::string_view getDescription() const override
Get a description for this connector.
std::string_view getClass() const override
A Connector belong to a certain class.
void serialize(Archive &ar, unsigned version)
AudioInputDevice & getPluggedAudioDev() const
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:11