openMSX
Public Member Functions | List of all members
openmsx::CassetteDevice Class Referenceabstract

#include <CassetteDevice.hh>

Inheritance diagram for openmsx::CassetteDevice:
Inheritance graph
[legend]
Collaboration diagram for openmsx::CassetteDevice:
Collaboration graph
[legend]

Public Member Functions

virtual void setMotor (bool status, EmuTime::param time)=0
 Sets the cassette motor relay false = off true = on. More...
 
virtual int16_t readSample (EmuTime::param time)=0
 Read wave data from cassette device. More...
 
virtual void setSignal (bool output, EmuTime::param time)=0
 Sets the cassette output signal false = low true = high. More...
 
std::string_view getClass () const final override
 A pluggable belongs to a certain class. More...
 
- Public Member Functions inherited from openmsx::Pluggable
virtual ~Pluggable ()=default
 
virtual const std::string & getName () const
 Name used to identify this pluggable. More...
 
virtual std::string_view getDescription () const =0
 Description for this pluggable. More...
 
void plug (Connector &connector, EmuTime::param time)
 This method is called when this pluggable is inserted in a connector. More...
 
void unplug (EmuTime::param time)
 This method is called when this pluggable is removed from a conector. More...
 
ConnectorgetConnector () const
 Get the connector this Pluggable is plugged into. More...
 
bool isPluggedIn () const
 Returns true if this pluggable is currently plugged into a connector. More...
 

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)
 

Detailed Description

Definition at line 9 of file CassetteDevice.hh.

Member Function Documentation

◆ getClass()

std::string_view openmsx::CassetteDevice::getClass ( ) const
finaloverridevirtual

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.

◆ readSample()

virtual int16_t openmsx::CassetteDevice::readSample ( EmuTime::param  time)
pure virtual

Read wave data from cassette device.

Implemented in openmsx::CassettePlayer, and openmsx::DummyCassetteDevice.

Referenced by openmsx::CassettePort::cassetteIn().

◆ setMotor()

virtual void openmsx::CassetteDevice::setMotor ( bool  status,
EmuTime::param  time 
)
pure virtual

Sets the cassette motor relay false = off true = on.

Implemented in openmsx::CassettePlayer, and openmsx::DummyCassetteDevice.

Referenced by openmsx::CassettePort::setMotor().

◆ setSignal()

virtual void openmsx::CassetteDevice::setSignal ( bool  output,
EmuTime::param  time 
)
pure virtual

Sets the cassette output signal false = low true = high.

Implemented in openmsx::CassettePlayer, and openmsx::DummyCassetteDevice.

Referenced by openmsx::CassettePort::cassetteOut().


The documentation for this class was generated from the following files: