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
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:9