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
7namespace openmsx {
8
10{
11public:
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
virtual int16_t readSample(EmuTime::param time)=0
Read wave data from cassette device.
virtual void setSignal(bool output, EmuTime::param time)=0
Sets the cassette output signal false = low true = high.
virtual void setMotor(bool status, EmuTime::param time)=0
Sets the cassette motor relay false = off true = on.
std::string_view getClass() const final
A pluggable belongs to a certain class.
This file implemented 3 utility functions:
Definition Autofire.cc:11