diff options
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()); } |