blob: 2cc33ae922f7d0693f78f5ebd3df671eece100a2 (
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
35
36
37
38
|
// license:BSD-3-Clause
// copyright-holders:R. Belmont
/*********************************************************************
midioutport.h
MIDI Out port - glues the image device to the pluggable midi port
*********************************************************************/
#ifndef MAME_BUS_MIDI_MIDIOUTPORT_H
#define MAME_BUS_MIDI_MIDIOUTPORT_H
#pragma once
#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_t clock);
virtual DECLARE_WRITE_LINE_MEMBER( input_txd ) override { if (started()) m_midiout->tx(state); }
protected:
virtual void device_start() override { }
virtual void device_reset() override { }
virtual void device_add_mconfig(machine_config &config) override;
private:
required_device<midiout_device> m_midiout;
};
DECLARE_DEVICE_TYPE(MIDIOUT_PORT, midiout_port_device)
#endif // MAME_BUS_MIDI_MIDIOUTPORT_H
|