diff options
author | David Robillard <d@drobilla.net> | 2007-07-23 06:08:11 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-07-23 06:08:11 +0000 |
commit | f2ff7dd066743dbe80de630a96f61fdab5bedef0 (patch) | |
tree | c6e98605b8ae32e076039695f7cf09d08e897e32 /src/libs/engine/events | |
parent | e2cfcb6288b000abccb15831e9dde8b8283eb36e (diff) | |
download | ingen-f2ff7dd066743dbe80de630a96f61fdab5bedef0.tar.gz ingen-f2ff7dd066743dbe80de630a96f61fdab5bedef0.tar.bz2 ingen-f2ff7dd066743dbe80de630a96f61fdab5bedef0.zip |
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
Diffstat (limited to 'src/libs/engine/events')
-rw-r--r-- | src/libs/engine/events/AddPortEvent.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
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 <raul/Path.h> +#include <raul/Array.h> +#include <raul/List.h> +#include <raul/Maid.h> #include "interface/Responder.h" +#include "AddPortEvent.h" #include "Patch.h" #include "Tree.h" #include "Plugin.h" #include "Engine.h" #include "Patch.h" -#include <raul/Maid.h> -#include <raul/Path.h> #include "QueuedEventSource.h" #include "ObjectStore.h" #include "ClientBroadcaster.h" -#include <raul/Path.h> #include "Port.h" #include "AudioDriver.h" #include "MidiDriver.h" -#include <raul/List.h> -#include "Driver.h" +#include "OSCDriver.h" #include "DuplexPort.h" -#include <raul/Array.h> namespace Ingen { @@ -121,6 +120,11 @@ AddPortEvent::pre_process() dynamic_cast<DuplexPort*>(_patch_port)); } + if (_type == "ingen:osc" && _engine.osc_driver()) { + _driver_port = _engine.osc_driver()->create_port( + dynamic_cast<DuplexPort*>(_patch_port)); + } + assert(_ports_array->size() == _patch->num_ports()); } |