summaryrefslogtreecommitdiffstats
path: root/src/engine/events
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-10-12 19:58:33 +0000
committerDavid Robillard <d@drobilla.net>2008-10-12 19:58:33 +0000
commitaf50ce8066ba9ce288d0724707f06e7a88b00f84 (patch)
treee23d060df1ccd63edb39b50432db41c5e9fc2d51 /src/engine/events
parent544851bda4a85a97b1f1e3a229ccd21b00a0f3fe (diff)
downloadingen-af50ce8066ba9ce288d0724707f06e7a88b00f84.tar.gz
ingen-af50ce8066ba9ce288d0724707f06e7a88b00f84.tar.bz2
ingen-af50ce8066ba9ce288d0724707f06e7a88b00f84.zip
Remove meaningless/non-LV2/kludgey 'event' 'midi' and 'osc' distinction.
Expose event ports to jack midi, again. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1665 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/events')
-rw-r--r--src/engine/events/CreatePortEvent.cpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/engine/events/CreatePortEvent.cpp b/src/engine/events/CreatePortEvent.cpp
index 6f3f80e5..b70615d7 100644
--- a/src/engine/events/CreatePortEvent.cpp
+++ b/src/engine/events/CreatePortEvent.cpp
@@ -106,15 +106,13 @@ CreatePortEvent::pre_process()
_engine.engine_store()->add(_patch_port);
if (!_patch->parent()) {
- if (_type == "lv2:AudioPort")
+ if (_type == "lv2:AudioPort") {
_driver_port = _engine.audio_driver()->create_port(
dynamic_cast<DuplexPort*>(_patch_port));
- else if (_type == "ingen:MIDIPort" || _type == "lv2ev:EventPort")
+ } else if (_type == "lv2ev:EventPort") {
_driver_port = _engine.midi_driver()->create_port(
dynamic_cast<DuplexPort*>(_patch_port));
- else if (_type == "ingen:OSCPort" && _engine.osc_driver())
- _driver_port = _engine.osc_driver()->create_port(
- dynamic_cast<DuplexPort*>(_patch_port));
+ }
}
assert(_ports_array->size() == _patch->num_ports());
@@ -134,14 +132,13 @@ CreatePortEvent::execute(ProcessContext& context)
_engine.maid()->push(_patch->external_ports());
_patch->external_ports(_ports_array);
}
-
+
if (_driver_port) {
- if (_type == "lv2:AudioPort")
+ if (_type == "lv2:AudioPort") {
_engine.audio_driver()->add_port(_driver_port);
- else if (_type == "ingen:MIDIPort" || _type == "lv2ev:EventPort")
+ } else if (_type == "lv2ev:EventPort") {
_engine.midi_driver()->add_port(_driver_port);
- else if (_type == "ingen:OSCPort")
- cerr << "OSC DRIVER PORT" << endl;
+ }
}
if (_source)