openMSX
CassetteDevice.hh
Go to the documentation of this file.
1 #ifndef CASSETTEDEVICE_HH
2 #define CASSETTEDEVICE_HH
3 
4 #include "Pluggable.hh"
5 #include <cstdint>
6 
7 namespace openmsx {
8 
9 class CassetteDevice : public Pluggable
10 {
11 public:
16  virtual void setMotor(bool status, EmuTime::param time) = 0;
17 
21  virtual int16_t readSample(EmuTime::param time) = 0;
22 
27  virtual void setSignal(bool output, EmuTime::param time) = 0;
28 
29  // Pluggable
30  string_view getClass() const final override;
31 };
32 
33 } // namespace openmsx
34 
35 #endif
virtual void setSignal(bool output, EmuTime::param time)=0
Sets the cassette output signal false = low true = high.
string_view getClass() const final override
A pluggable belongs to a certain class.
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
virtual int16_t readSample(EmuTime::param time)=0
Read wave data from cassette device.
virtual void setMotor(bool status, EmuTime::param time)=0
Sets the cassette motor relay false = off true = on.