blob: 175f9778b1b62384d736afe867d44f8f3d21e0d5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/*********************************************************************
midioutport.h
MIDI Out port - glues the image device to the pluggable midi port
*********************************************************************/
#ifndef _MIDIOUTPORT_H_
#define _MIDIOUTPORT_H_
#include "midi.h"
#include "imagedev/midiout.h"
class midiout_port_device : public device_t,
public device_midi_port_interface
{
public:
midiout_port_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
virtual machine_config_constructor device_mconfig_additions() const;
virtual DECLARE_WRITE_LINE_MEMBER( input_txd ) { if (started()) m_midiout->tx(state); }
protected:
virtual void device_start() { }
virtual void device_reset() { }
private:
required_device<midiout_device> m_midiout;
};
extern const device_type MIDIOUT_PORT;
#endif
|