OXYGENHUB
◆ main openmsx / src / cassette / CassetteDevice.hh
630 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
e8555c89 Andy McCall 1
#ifndef CASSETTEDEVICE_HH
2
#define CASSETTEDEVICE_HH
3
4
#include "Pluggable.hh"
5
#include <cstdint>
6
7
namespace openmsx {
8
9
class CassetteDevice : public Pluggable
10
{
11
public:
12
	/**
13
	 * Sets the cassette motor relay
14
	 *  false = off   true = on
15
	 */
16
	virtual void setMotor(bool status, EmuTime time) = 0;
17
18
	/**
19
	 * Read wave data from cassette device
20
	 */
21
	virtual int16_t readSample(EmuTime time) = 0;
22
23
	/**
24
	 * Sets the cassette output signal
25
	 *  false = low   true = high
26
	 */
27
	virtual void setSignal(bool output, EmuTime time) = 0;
28
29
	// Pluggable
30
	[[nodiscard]] zstring_view getClass() const final;
31
};
32
33
} // namespace openmsx
34
35
#endif