diff options
author | David Robillard <d@drobilla.net> | 2006-09-06 22:53:24 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-09-06 22:53:24 +0000 |
commit | f514f3a017029bcc68fab25c8b84be4e6122709d (patch) | |
tree | 8f9cc587b4fec4e4eeae4d268413f633e7069a03 /src | |
parent | 0e34ca14de840baaccadce1014bf4ae1a1ab8980 (diff) | |
download | patchage-f514f3a017029bcc68fab25c8b84be4e6122709d.tar.gz patchage-f514f3a017029bcc68fab25c8b84be4e6122709d.tar.bz2 patchage-f514f3a017029bcc68fab25c8b84be4e6122709d.zip |
Fixed -O flags for debug builds
git-svn-id: http://svn.drobilla.net/lad/patchage@117 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/JackDriver.cpp | 4 |
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), |