openMSX
DummyCassetteDevice.cc
Go to the documentation of this file.
1 #include "DummyCassetteDevice.hh"
2 
3 namespace openmsx {
4 
5 void DummyCassetteDevice::setMotor(bool /*status*/, EmuTime::param /*time*/)
6 {
7  // do nothing
8 }
9 
10 int16_t DummyCassetteDevice::readSample(EmuTime::param /*time*/)
11 {
12  return 32767; // TODO check value
13 }
14 
15 void DummyCassetteDevice::setSignal(bool /*output*/, EmuTime::param /*time*/)
16 {
17  // do nothing
18 }
19 
20 std::string_view DummyCassetteDevice::getDescription() const
21 {
22  return {};
23 }
24 
26  EmuTime::param /*time*/)
27 {
28 }
29 
30 void DummyCassetteDevice::unplugHelper(EmuTime::param /*time*/)
31 {
32 }
33 
34 } // namespace openmsx
DummyCassetteDevice.hh
openmsx::DummyCassetteDevice::plugHelper
void plugHelper(Connector &connector, EmuTime::param time) override
Definition: DummyCassetteDevice.cc:25
openmsx::DummyCassetteDevice::setMotor
void setMotor(bool status, EmuTime::param time) override
Sets the cassette motor relay false = off true = on.
Definition: DummyCassetteDevice.cc:5
openmsx::DummyCassetteDevice::unplugHelper
void unplugHelper(EmuTime::param time) override
Definition: DummyCassetteDevice.cc:30
openmsx::DummyCassetteDevice::getDescription
std::string_view getDescription() const override
Description for this pluggable.
Definition: DummyCassetteDevice.cc:20
openmsx::Connector
Represents something you can plug devices into.
Definition: Connector.hh:21
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5
openmsx::DummyCassetteDevice::readSample
int16_t readSample(EmuTime::param time) override
Read wave data from cassette device.
Definition: DummyCassetteDevice.cc:10
openmsx::DummyCassetteDevice::setSignal
void setSignal(bool output, EmuTime::param time) override
Sets the cassette output signal false = low true = high.
Definition: DummyCassetteDevice.cc:15