summaryrefslogtreecommitdiffstats
path: root/src/JackDriver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/JackDriver.cpp')
-rw-r--r--src/JackDriver.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/JackDriver.cpp b/src/JackDriver.cpp
index 5bb084e..bbbd8fb 100644
--- a/src/JackDriver.cpp
+++ b/src/JackDriver.cpp
@@ -140,8 +140,10 @@ JackDriver::refresh()
// FIXME: leak? jack docs don't say
const char* const type_str = jack_port_type(port);
PortType port_type = JACK_AUDIO;
- if (!strcmp(type_str, "8 bit raw midi"))
+ if (!strcmp(type_str, JACK_DEFAULT_MIDI_TYPE))
port_type = JACK_MIDI;
+ else if (strcmp(type_str, JACK_DEFAULT_AUDIO_TYPE))
+ throw "Unknown JACK port type?";
m->add_patchage_port(jack_port_short_name(port),
(jack_port_flags(port) & JackPortIsInput),