OXYGENHUB
◆ main openmsx / src / sound / AudioInputConnector.hh
676 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
e8555c89 Andy McCall 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]] zstring_view getDescription() const override;
21
	[[nodiscard]] zstring_view getClass() const override;
22
23
	[[nodiscard]] int16_t readSample(EmuTime time) const;
24
25
	template<typename Archive>
26
	void serialize(Archive& ar, unsigned version);
27
};
28
29
} // namespace openmsx
30
31
#endif