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  [[nodiscard]] std::string_view getClass() const final;
31 };
32 
33 } // namespace openmsx
34 
35 #endif
openmsx::CassetteDevice::setSignal
virtual void setSignal(bool output, EmuTime::param time)=0
Sets the cassette output signal false = low true = high.
openmsx::CassetteDevice::getClass
std::string_view getClass() const final
A pluggable belongs to a certain class.
Definition: CassetteDevice.cc:5
Pluggable.hh
openmsx::Pluggable
Definition: Pluggable.hh:12
openmsx::CassetteDevice::setMotor
virtual void setMotor(bool status, EmuTime::param time)=0
Sets the cassette motor relay false = off true = on.
openmsx::CassetteDevice::readSample
virtual int16_t readSample(EmuTime::param time)=0
Read wave data from cassette device.
openmsx::CassetteDevice
Definition: CassetteDevice.hh:10
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5