Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#81 mixer /listmidi support for Mac OS X

open
nobody
None
5
2012-09-07
2009-07-21
Matthew Ratzloff
No

Currently mixer /listmidi only works for Windows. Please support this in Mac OS X as well, so external MIDI hardware can be configured in DOSBox.

Here is the current ListMidi() method:

dosbox/src/hardware/mixer.cpp:
584 void ListMidi(){
585 #if defined (WIN32)
586 unsigned int total = midiOutGetNumDevs();
587 for(unsigned int i=0;i<total;i++) {
588 MIDIOUTCAPS mididev;
589 midiOutGetDevCaps(i, &mididev, sizeof(MIDIOUTCAPS));
590 WriteOut("%2d\t \"%s\"\n",i,mididev.szPname);
591 }
592 #endif
593 return;
594 };

Here is a link to Mac OS X's C reference for the Core MIDI Framework (MIDIServices.h):

http://developer.apple.com/documentation/MusicAudio/Reference/CACoreMIDIRef/MIDIServices/index.html

These methods appear to be relevant to this function:

  • MIDIGetNumberOfDevices()
  • MIDIGetNumberOfExternalDevices()
  • MIDIGetDevice()

Thanks!

-Matt

Discussion