--- src/giada/src/kernelMidi.cpp 2014-05-13 23:40:46.417992859 +0100 +++ src/giada/src/kernelMidi.new.cpp 2014-05-13 23:41:43.344813969 +0100 @@ -96,7 +96,7 @@ midiOut = new RtMidiOut((RtMidi::Api) api, "Giada MIDI Output"); G_midiStatus = true; } - catch (RtMidiError &error) { + catch (RtError &error) { gLog("[KM] MIDI out device error: %s\n", error.getMessage().c_str()); G_midiStatus = false; return 0; @@ -117,7 +117,7 @@ gLog("[KM] MIDI out port %d open\n", port); return 1; } - catch (RtMidiError &error) { + catch (RtError &error) { gLog("[KM] unable to open MIDI out port %d: %s\n", port, error.getMessage().c_str()); G_midiStatus = false; return 0; @@ -137,7 +137,7 @@ midiIn = new RtMidiIn((RtMidi::Api) api, "Giada MIDI input"); G_midiStatus = true; } - catch (RtMidiError &error) { + catch (RtError &error) { gLog("[KM] MIDI in device error: %s\n", error.getMessage().c_str()); G_midiStatus = false; return 0; @@ -160,7 +160,7 @@ midiIn->setCallback(&callback); return 1; } - catch (RtMidiError &error) { + catch (RtError &error) { gLog("[KM] unable to open MIDI in port %d: %s\n", port, error.getMessage().c_str()); G_midiStatus = false; return 0; @@ -189,12 +189,12 @@ const char *getOutPortName(unsigned p) { try { return midiOut->getPortName(p).c_str(); } - catch (RtMidiError &error) { return NULL; } + catch (RtError &error) { return NULL; } } const char *getInPortName(unsigned p) { try { return midiIn->getPortName(p).c_str(); } - catch (RtMidiError &error) { return NULL; } + catch (RtError &error) { return NULL; } }