When MIDI is available, it will appear in -listslots. For instance, "mame64 at486 -isa5 mpu401" will then have this in -listslots:
isa5:mpu401:mpu401:mdin midiin MIDI In port
isa5:mpu401:mpu401:mdout midiout MIDI Out port
The special case is that you have to parse the -listmidi output to get the actual values they accept, you can only determine their presence with -listslots. For instance, on my Linux machine:
MIDI input ports:
Midi Through Port-0
KeyStudio MIDI 1 (default)
MIDI output ports:
Midi Through Port-0 (default)
M-Audio MIDI Out A
M-Audio MIDI Out B
The two listed under "input ports" are available for -midiin, and the "output ports" work with -midiout. Note that you must include the full name as listed, with the shortcut that the port listed as (default) can also be named as just "default".
Last edited by R. Belmont; 06/11/15 11:00 AM.