summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/osdcore.h
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2013-01-13 03:48:10 +0000
committer R. Belmont <rb6502@users.noreply.github.com>2013-01-13 03:48:10 +0000
commitf6c44c6e9bbf1720d481707cbee73aadbae21572 (patch)
tree93d48913f4afee3080c2aca425119f0840b74276 /src/osd/osdcore.h
parentfa807d8a30cd94a3f4f283db378f47312271d61f (diff)
MIDI core updates: [R. Belmont]
- Add MIDI in and out ports as image device types - Add OSD calls to check for and read MIDI input - Add MIDI in image device which reads input and converts it to a serial bitstream nw section: Note that the MIDI In device uses the new image device override to prevent the core from attempting to fopen() the "file" name and instead it handles open/close itself in call_load/call_unload. This allows greater flexibilty than the hack used for sockets/ptys/named pipes where the OSD file layer has to know about them.
Diffstat (limited to 'src/osd/osdcore.h')
-rw-r--r--src/osd/osdcore.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osd/osdcore.h b/src/osd/osdcore.h
index c2f8ffb2e6c..bc078888669 100644
--- a/src/osd/osdcore.h
+++ b/src/osd/osdcore.h
@@ -895,6 +895,8 @@ void osd_list_midi_devices(void);
osd_midi_device *osd_open_midi_input(const char *devname);
osd_midi_device *osd_open_midi_output(const char *devname);
void osd_close_midi_channel(osd_midi_device *dev);
+bool osd_poll_midi_channel(osd_midi_device *dev);
+int osd_read_midi_channel(osd_midi_device *dev, UINT8 *pOut);
/***************************************************************************
UNCATEGORIZED INTERFACES