From f2ff7dd066743dbe80de630a96f61fdab5bedef0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 23 Jul 2007 06:08:11 +0000 Subject: Fixed OSC printer bugs, instantiates correctly now. Made input port on OSC printer connectionOptional. Stub LV2 OSC support in Ingen (plugins loadable, ports show up, no data flow yet). git-svn-id: http://svn.drobilla.net/lad/ingen@601 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/events/AddPortEvent.cpp | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src/libs/engine/events/AddPortEvent.cpp') diff --git a/src/libs/engine/events/AddPortEvent.cpp b/src/libs/engine/events/AddPortEvent.cpp index 82cd4ded..c2ec9326 100644 --- a/src/libs/engine/events/AddPortEvent.cpp +++ b/src/libs/engine/events/AddPortEvent.cpp @@ -15,26 +15,25 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "AddPortEvent.h" +#include +#include +#include +#include #include "interface/Responder.h" +#include "AddPortEvent.h" #include "Patch.h" #include "Tree.h" #include "Plugin.h" #include "Engine.h" #include "Patch.h" -#include -#include #include "QueuedEventSource.h" #include "ObjectStore.h" #include "ClientBroadcaster.h" -#include #include "Port.h" #include "AudioDriver.h" #include "MidiDriver.h" -#include -#include "Driver.h" +#include "OSCDriver.h" #include "DuplexPort.h" -#include namespace Ingen { @@ -121,6 +120,11 @@ AddPortEvent::pre_process() dynamic_cast(_patch_port)); } + if (_type == "ingen:osc" && _engine.osc_driver()) { + _driver_port = _engine.osc_driver()->create_port( + dynamic_cast(_patch_port)); + } + assert(_ports_array->size() == _patch->num_ports()); } -- cgit v1.2.1