Add relavent OSX midi options in the startup dialog
authorMichael Fisher <mfisher31@gmail.com>
Sun, 28 Jul 2013 19:05:24 +0000 (14:05 -0500)
committerRobin Gareus <robin@gareus.org>
Mon, 29 Jul 2013 18:05:10 +0000 (20:05 +0200)
- MIDI driver options are now "None" and "coremidi" on OSX
- If coremidi is selected, jack will start with midi activated
- Requires Jack OSX version 0.90 beta 15 (or another version that
  supports midi

gtk2_ardour/engine_dialog.cc

index a9e04d8db0e65bcc3ae0f86df467b2f1845a5cc5..05cd9a661ed8bae19245759ae54fef19380a4431 100644 (file)
@@ -167,8 +167,12 @@ EngineControl::EngineControl ()
 
        strings.clear ();
        strings.push_back (_("None"));
+#ifdef __APPLE__
+       strings.push_back (_("coremidi"));
+#else
        strings.push_back (_("seq"));
        strings.push_back (_("raw"));
+#endif
        set_popdown_strings (midi_driver_combo, strings);
        midi_driver_combo.set_active_text (strings.front ());
 
@@ -439,6 +443,12 @@ EngineControl::build_command_line (vector<string>& cmd)
 
        cmd.push_back ("-T"); // temporary */
 
+       /* setup coremidi before the driver, otherwise jack won't start */
+
+       if (midi_driver_combo.get_active_text() == _("coremidi")) {
+               cmd.push_back ("-X coremidi");
+       }
+
        /* next the driver */
 
        cmd.push_back ("-d");