diff options
Diffstat (limited to 'src/server/JackDriver.cpp')
-rw-r--r-- | src/server/JackDriver.cpp | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/src/server/JackDriver.cpp b/src/server/JackDriver.cpp index 372feaa6..65566472 100644 --- a/src/server/JackDriver.cpp +++ b/src/server/JackDriver.cpp @@ -75,7 +75,7 @@ JackPort::create() { _jack_port = jack_port_register( _driver->jack_client(), - ingen_jack_port_name(_patch_port->path()).c_str(), + _patch_port->path().substr(1).c_str(), (_patch_port->is_a(PortType::AUDIO)) ? JACK_DEFAULT_AUDIO_TYPE : JACK_DEFAULT_MIDI_TYPE, (_patch_port->is_input()) @@ -99,12 +99,6 @@ JackPort::destroy() } void -JackPort::move(const Raul::Path& path) -{ - jack_port_set_name(_jack_port, ingen_jack_port_name(path).c_str()); -} - -void JackPort::pre_process(ProcessContext& context) { const SampleCount nframes = context.nframes(); @@ -339,6 +333,16 @@ JackDriver::remove_port(ProcessContext& context, return NULL; } +void +JackDriver::rename_port(const Raul::Path& old_path, + const Raul::Path& new_path) +{ + JackPort* jport = dynamic_cast<JackPort*>(port(old_path)); + if (jport) { + jack_port_set_name(jport->jack_port(), new_path.substr(1).c_str()); + } +} + EnginePort* JackDriver::port(const Raul::Path& path) { @@ -365,17 +369,6 @@ JackDriver::create_port(DuplexPort* patch_port) } } -EnginePort* -JackDriver::engine_port(ProcessContext& context, - const Raul::Path& path) -{ - for (Raul::List<JackPort*>::iterator i = _ports.begin(); i != _ports.end(); ++i) - if ((*i)->patch_port()->path() == path) - return (*i); - - return NULL; -} - /**** Jack Callbacks ****/ /** Jack process callback, drives entire audio thread. |