From 36dc6bdb6d9b96e2a18acbe6c681a842d1590fb6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 4 Feb 2010 01:29:34 +0000 Subject: MIDI feedback. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2418 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/events/CreatePort.cpp | 2 +- src/engine/events/SetMetadata.cpp | 2 +- src/engine/events/SetPortValue.cpp | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'src/engine/events') diff --git a/src/engine/events/CreatePort.cpp b/src/engine/events/CreatePort.cpp index 7b63f6c5..b12f25dc 100644 --- a/src/engine/events/CreatePort.cpp +++ b/src/engine/events/CreatePort.cpp @@ -137,7 +137,7 @@ CreatePort::execute(ProcessContext& context) if (_patch_port) { _engine.maid()->push(_patch->external_ports()); _patch->external_ports(_ports_array); - _engine.control_bindings()->update_port(context, _patch_port); + _engine.control_bindings()->port_binding_changed(context, _patch_port); } if (_driver_port) { diff --git a/src/engine/events/SetMetadata.cpp b/src/engine/events/SetMetadata.cpp index 8165f554..9b615a49 100644 --- a/src/engine/events/SetMetadata.cpp +++ b/src/engine/events/SetMetadata.cpp @@ -257,7 +257,7 @@ SetMetadata::execute(ProcessContext& context) break; case CONTROL_BINDING: if ((port = dynamic_cast(_object))) - _engine.control_bindings()->update_port(context, port); + _engine.control_bindings()->port_binding_changed(context, port); default: _success = true; } diff --git a/src/engine/events/SetPortValue.cpp b/src/engine/events/SetPortValue.cpp index aaa387b0..892abb67 100644 --- a/src/engine/events/SetPortValue.cpp +++ b/src/engine/events/SetPortValue.cpp @@ -23,8 +23,9 @@ #include "shared/LV2Object.hpp" #include "module/World.hpp" #include "AudioBuffer.hpp" -#include "Driver.hpp" #include "ClientBroadcaster.hpp" +#include "ControlBindings.hpp" +#include "Driver.hpp" #include "Engine.hpp" #include "EngineStore.hpp" #include "EventBuffer.hpp" @@ -33,6 +34,7 @@ #include "ObjectBuffer.hpp" #include "PortImpl.hpp" #include "ProcessContext.hpp" +#include "ProcessContext.hpp" #include "Request.hpp" #include "SetPortValue.hpp" @@ -143,6 +145,7 @@ SetPortValue::execute(ProcessContext& context) return; apply(context); + _engine.control_bindings()->port_value_changed(context, _port); } -- cgit v1.2.1