openMSX
|
#include <CassetteDevice.hh>
Public Member Functions | |
virtual void | setMotor (bool status, EmuTime::param time)=0 |
Sets the cassette motor relay false = off true = on. | |
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. | |
std::string_view | getClass () const final |
A pluggable belongs to a certain class. | |
Public Member Functions inherited from openmsx::Pluggable | |
virtual | ~Pluggable ()=default |
virtual std::string_view | getName () const |
Name used to identify this pluggable. | |
virtual std::string_view | getDescription () const =0 |
Description for this pluggable. | |
void | plug (Connector &connector, EmuTime::param time) |
This method is called when this pluggable is inserted in a connector. | |
void | unplug (EmuTime::param time) |
This method is called when this pluggable is removed from a connector. | |
Connector * | getConnector () const |
Get the connector this Pluggable is plugged into. | |
bool | isPluggedIn () const |
Returns true if this pluggable is currently plugged into a connector. | |
Additional Inherited Members | |
Protected Member Functions inherited from openmsx::Pluggable | |
Pluggable () | |
virtual void | plugHelper (Connector &newConnector, EmuTime::param time)=0 |
virtual void | unplugHelper (EmuTime::param time)=0 |
void | setConnector (Connector *conn) |
Definition at line 9 of file CassetteDevice.hh.
|
finalvirtual |
A pluggable belongs to a certain class.
A pluggable only fits in connectors of the same class.
Implements openmsx::Pluggable.
Definition at line 5 of file CassetteDevice.cc.
|
pure virtual |
Read wave data from cassette device.
Implemented in openmsx::CassettePlayer, and openmsx::DummyCassetteDevice.
Referenced by openmsx::CassettePort::cassetteIn().
|
pure virtual |
Sets the cassette motor relay false = off true = on.
Implemented in openmsx::CassettePlayer, and openmsx::DummyCassetteDevice.
Referenced by openmsx::CassettePort::setMotor().
|
pure virtual |
Sets the cassette output signal false = low true = high.
Implemented in openmsx::CassettePlayer, and openmsx::DummyCassetteDevice.
Referenced by openmsx::CassettePort::cassetteOut().