summaryrefslogtreecommitdiffstats
path: root/src/engine/JackAudioDriver.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-12-30 04:35:09 +0000
committerDavid Robillard <d@drobilla.net>2009-12-30 04:35:09 +0000
commit82245ba65d5b13a9cf40921affb70872147cf00c (patch)
tree42b815c363ad48e08467042a0c37d71bc6f5fc4a /src/engine/JackAudioDriver.cpp
parent973858ec5a5f795f6ec0c712733a5f5343eb0261 (diff)
downloadingen-82245ba65d5b13a9cf40921affb70872147cf00c.tar.gz
ingen-82245ba65d5b13a9cf40921affb70872147cf00c.tar.bz2
ingen-82245ba65d5b13a9cf40921affb70872147cf00c.zip
Fix JACK name of top level ports (fix ticket #457).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2319 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/JackAudioDriver.cpp')
-rw-r--r--src/engine/JackAudioDriver.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/engine/JackAudioDriver.cpp b/src/engine/JackAudioDriver.cpp
index 05b0c45b..d4c4da25 100644
--- a/src/engine/JackAudioDriver.cpp
+++ b/src/engine/JackAudioDriver.cpp
@@ -70,7 +70,8 @@ void
JackAudioPort::create()
{
_jack_port = jack_port_register(_driver->jack_client(),
- _patch_port->path().chop_start("/").c_str(), JACK_DEFAULT_AUDIO_TYPE,
+ ingen_jack_port_name(_patch_port->path()).c_str(),
+ JACK_DEFAULT_AUDIO_TYPE,
(_patch_port->is_input()) ? JackPortIsInput : JackPortIsOutput,
0);
@@ -92,6 +93,13 @@ JackAudioPort::destroy()
void
+JackAudioPort::move(const Raul::Path& path)
+{
+ jack_port_set_name(_jack_port, ingen_jack_port_name(path).c_str());
+}
+
+
+void
JackAudioPort::pre_process(jack_nframes_t nframes)
{
if (!is_input())