openMSX
AudioInputDevice.hh
Go to the documentation of this file.
1 #ifndef AUDIOINPUTDEVICE_HH
2 #define AUDIOINPUTDEVICE_HH
3 
4 #include "Pluggable.hh"
5 #include <cstdint>
6 
7 namespace openmsx {
8 
9 class AudioInputDevice : public Pluggable
10 {
11 public:
15  virtual int16_t readSample(EmuTime::param time) = 0;
16 
17  // Pluggable
18  string_view getClass() const final override;
19 };
20 
21 } // namespace openmsx
22 
23 #endif
virtual int16_t readSample(EmuTime::param time)=0
Read wave data.
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
This class implements a (close approximation) of the std::string_view class.
Definition: string_view.hh:16
string_view getClass() const final override
A pluggable belongs to a certain class.