| 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 |
|
| 14 |
|
| 15 |
|
| 16 |
virtual void setMotor(bool status, EmuTime time) = 0; |
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
virtual int16_t readSample(EmuTime time) = 0; |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
virtual void setSignal(bool output, EmuTime time) = 0; |
| 28 |
|
| 29 |
|
| 30 |
[[nodiscard]] zstring_view getClass() const final; |
| 31 |
}; |
| 32 |
|
| 33 |
} |
| 34 |
|
| 35 |
#endif |