summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-13 20:52:32 +0000
committerDavid Robillard <d@drobilla.net>2009-05-13 20:52:32 +0000
commit6907b8c5d709e246eb2f1ab109a52af1158e8e17 (patch)
tree052b448584611a01109a9514ede503841dd27cd6
parentced834b9c6e9492f26b5cc80795951e2cd374adc (diff)
downloadingen-6907b8c5d709e246eb2f1ab109a52af1158e8e17.tar.gz
ingen-6907b8c5d709e246eb2f1ab109a52af1158e8e17.tar.bz2
ingen-6907b8c5d709e246eb2f1ab109a52af1158e8e17.zip
Fix Jack port names.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2004 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/engine/JackAudioDriver.cpp2
-rw-r--r--src/engine/JackMidiDriver.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/JackAudioDriver.cpp b/src/engine/JackAudioDriver.cpp
index 68646434..667b6d91 100644
--- a/src/engine/JackAudioDriver.cpp
+++ b/src/engine/JackAudioDriver.cpp
@@ -71,7 +71,7 @@ void
JackAudioPort::create()
{
_jack_port = jack_port_register(_driver->jack_client(),
- _patch_port->path().c_str(), JACK_DEFAULT_AUDIO_TYPE,
+ _patch_port->path().chop_start("/").c_str(), JACK_DEFAULT_AUDIO_TYPE,
(_patch_port->is_input()) ? JackPortIsInput : JackPortIsOutput,
0);
diff --git a/src/engine/JackMidiDriver.cpp b/src/engine/JackMidiDriver.cpp
index ffda8367..039bf7b0 100644
--- a/src/engine/JackMidiDriver.cpp
+++ b/src/engine/JackMidiDriver.cpp
@@ -65,7 +65,7 @@ void
JackMidiPort::create()
{
_jack_port = jack_port_register(_driver->jack_client(),
- _patch_port->path().c_str(), JACK_DEFAULT_MIDI_TYPE,
+ _patch_port->path().chop_start("/").c_str(), JACK_DEFAULT_MIDI_TYPE,
(_patch_port->is_input()) ? JackPortIsInput : JackPortIsOutput,
0);