Menu

#164 CoreMIDI support for OSX

closed
Qbix
None
5
2012-09-07
2006-05-18
No

This small modification allows users of Mac OS X to use
their external MIDI instruments with DOSBox's MPU-401
emulation. The coreaudio feature also remains intact
and works as normal.

I have tested this with Mac OS X 10.4.6. I am using a
vintage Roland MT-32 module connected to my USB
Midisport 2x2. I am able to send the MIDI messages to
either port A or port B by simply modifying the DOSBox
config file.

For the config file, all you need to do to enable this
patch is set device=coremidi in the [midi] section, and
then set the config=1 to send to the first output port
found. If you have more than one MIDI out, then you
can specify 2, etc, if you want to utilize a different
port.

Unzip the archive in the dosbox-0.65 folder. There
will be a configure.diff file that needs to be applied
to the configure script, and a .diff file for
src/gui/midi.cpp. There is also a new file:
src/gui/midi_coremidi.h.

I think that's it. I haven't submitted a patch before,
so I hope this works for you.

Discussion

  • Peter McCombs

    Peter McCombs - 2006-05-18

    CoreMIDI patch for OS X

     
  • Qbix

    Qbix - 2006-05-18

    Logged In: YES
    user_id=535630

    I'll try to get some testing for it.

    In DOSBox practice it's usually the case that specifying no
    config means use the default ID. Although this can be easely
    added.
    The patch itself is fine, although if you are creating a
    patch again you should consider adding a -u to diff (diff -u)

     
  • jjamieson

    jjamieson - 2007-09-04

    Logged In: YES
    user_id=1879010
    Originator: NO

    This patch worked great on .72 source. I had to manually make the adjustment to "configure" as that file has changed since .65 (for which you did the diff for) but the midi.cpp went right in no problem.

    The app compiled with no problems, and now I have coremidi support so I can use my MT-32 with DOSBox.

    Recommended patch!

     
  • November

    November - 2007-11-24

    Logged In: YES
    user_id=1944928
    Originator: NO

    I signed up just to comment that this patch works wonderfully under Tiger and Leopard, both on Intel and PPC. Though building under Leopard requires you to throw in '#include <audiounit auntcomponent.h="">' to midi_coreaudio.h in order to get it to go.</audiounit>

    Please consider merging this by 0.73 in some form, since there's a good handful of us that use actual MIDI synth hardware with DOSbox and having to patch every release is a lot of unfun.

     
  • Qbix

    Qbix - 2007-12-12

    Logged In: YES
    user_id=535630
    Originator: NO

    hi,

    Considering the good responses this patch has acquired I added it to the cvs of dosbox.
    I slightly modified to be more inline with the other midi clients (first port is zero)

    Thanks

     

Log in to post a comment.

MongoDB Logo MongoDB