summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/events
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-07-29 06:21:29 +0000
committerDavid Robillard <d@drobilla.net>2008-07-29 06:21:29 +0000
commit1bcac68c24eeca5fba730a9dc48ac09eee9ac76b (patch)
tree4db45b2f7ead16227906ec6fcb8999cefb87b32e /src/libs/engine/events
parentf0e920ab170569fc9eaf5858af2e9ae3e8d44993 (diff)
downloadingen-1bcac68c24eeca5fba730a9dc48ac09eee9ac76b.tar.gz
ingen-1bcac68c24eeca5fba730a9dc48ac09eee9ac76b.tar.bz2
ingen-1bcac68c24eeca5fba730a9dc48ac09eee9ac76b.zip
Add converted Smack 909 patches.
Fix MIDI/Event ports loaded from patches. git-svn-id: http://svn.drobilla.net/lad/ingen@1303 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/events')
-rw-r--r--src/libs/engine/events/CreatePortEvent.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/engine/events/CreatePortEvent.cpp b/src/libs/engine/events/CreatePortEvent.cpp
index 272ef561..aca33c67 100644
--- a/src/libs/engine/events/CreatePortEvent.cpp
+++ b/src/libs/engine/events/CreatePortEvent.cpp
@@ -113,7 +113,7 @@ CreatePortEvent::pre_process()
if (_type == "ingen:AudioPort")
_driver_port = _engine.audio_driver()->create_port(
dynamic_cast<DuplexPort*>(_patch_port));
- else if (_type == "ingen:MIDIPort")
+ else if (_type == "ingen:MIDIPort" || _type == "ingen:EventPort")
_driver_port = _engine.midi_driver()->create_port(
dynamic_cast<DuplexPort*>(_patch_port));
else if (_type == "ingen:OSCPort" && _engine.osc_driver())
@@ -145,7 +145,7 @@ CreatePortEvent::execute(ProcessContext& context)
if (_driver_port) {
if (_type == "ingen:AudioPort")
_engine.audio_driver()->add_port(_driver_port);
- else if (_type == "ingen:MIDIPort")
+ else if (_type == "ingen:MIDIPort" || _type == "ingen:EventPort")
_engine.midi_driver()->add_port(_driver_port);
else if (_type == "ingen:OSCPort")
cerr << "OSC DRIVER PORT" << endl;