openMSX
DummyCassetteDevice.hh
Go to the documentation of this file.
1 #ifndef DUMMYCASSETTEDEVICE_HH
2 #define DUMMYCASSETTEDEVICE_HH
3 
4 #include "CassetteDevice.hh"
5 
6 namespace openmsx {
7 
8 class DummyCassetteDevice final : public CassetteDevice
9 {
10 public:
11  void setMotor(bool status, EmuTime::param time) override;
12  void setSignal(bool output, EmuTime::param time) override;
13  int16_t readSample(EmuTime::param time) override;
14 
15  [[nodiscard]] std::string_view getDescription() const override;
16  void plugHelper(Connector& connector, EmuTime::param time) override;
17  void unplugHelper(EmuTime::param time) override;
18 };
19 
20 } // namespace openmsx
21 
22 #endif
Represents something you can plug devices into.
Definition: Connector.hh:21
void unplugHelper(EmuTime::param time) override
int16_t readSample(EmuTime::param time) override
Read wave data from cassette device.
void setSignal(bool output, EmuTime::param time) override
Sets the cassette output signal false = low true = high.
void setMotor(bool status, EmuTime::param time) override
Sets the cassette motor relay false = off true = on.
void plugHelper(Connector &connector, EmuTime::param time) override
std::string_view getDescription() const override
Description for this pluggable.
This file implemented 3 utility functions:
Definition: Autofire.cc:5