2 NEC PC-8201 Emulator 'ePC-8201'
4 Author : Takeda.Toshiya
14 #include "../../emu.h"
15 #include "../device.h"
17 #define SIG_CMT_REMOTE 0
21 #define BUFFER_SIZE 0x40000
23 class CMT : public DEVICE
27 bool is_wav, rec, remote;
28 _TCHAR rec_file_path[_MAX_PATH];
30 uint8_t buffer[BUFFER_SIZE];
34 void write_buffer(uint8_t value, int samples);
38 CMT(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
40 set_device_name(_T("CMT I/F"));
48 void write_signal(int id, uint32_t data, uint32_t mask);
49 bool process_state(FILEIO* state_fio, bool loading);
52 void rec_tape(const _TCHAR* file_path);
54 bool is_tape_inserted()
58 bool is_tape_playing()
62 bool is_tape_recording()
66 int get_tape_position()