From 82245ba65d5b13a9cf40921affb70872147cf00c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 30 Dec 2009 04:35:09 +0000 Subject: 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 --- src/engine/JackMidiDriver.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/engine/JackMidiDriver.cpp') diff --git a/src/engine/JackMidiDriver.cpp b/src/engine/JackMidiDriver.cpp index 6de97f68..a1c76f99 100644 --- a/src/engine/JackMidiDriver.cpp +++ b/src/engine/JackMidiDriver.cpp @@ -33,6 +33,7 @@ #include "ProcessContext.hpp" #include "Engine.hpp" #include "jack_compat.h" +#include "util.hpp" using namespace std; using namespace Raul; @@ -66,7 +67,8 @@ void JackMidiPort::create() { _jack_port = jack_port_register(_driver->jack_client(), - _patch_port->path().chop_start("/").c_str(), JACK_DEFAULT_MIDI_TYPE, + ingen_jack_port_name(_patch_port->path()).c_str(), + JACK_DEFAULT_MIDI_TYPE, (_patch_port->is_input()) ? JackPortIsInput : JackPortIsOutput, 0); @@ -88,6 +90,13 @@ JackMidiPort::destroy() } +void +JackMidiPort::move(const Raul::Path& path) +{ + jack_port_set_name(_jack_port, ingen_jack_port_name(path).c_str()); +} + + /** Prepare input for a block before a cycle is run, in the audio thread. * * This is simple since Jack MIDI is in-band with audio. -- cgit v1.2.1