From e2cfcb6288b000abccb15831e9dde8b8283eb36e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 23 Jul 2007 02:33:55 +0000 Subject: Removed glib dependency from LV2 OSC code. Made LV2 OSC code C++ safe. Preliminary work on OSC patching in Ingen. Added LV2 OSC printing stuff to repository. Broke building Ingen separately. Whatever. git-svn-id: http://svn.drobilla.net/lad/ingen@599 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/events/AddPortEvent.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/libs/engine/events') diff --git a/src/libs/engine/events/AddPortEvent.cpp b/src/libs/engine/events/AddPortEvent.cpp index b1925b07..82cd4ded 100644 --- a/src/libs/engine/events/AddPortEvent.cpp +++ b/src/libs/engine/events/AddPortEvent.cpp @@ -68,6 +68,8 @@ AddPortEvent::AddPortEvent(Engine& engine, _data_type = DataType::FLOAT; else if (type == "ingen:midi") _data_type = DataType::MIDI; + else if (type == "ingen:osc") + _data_type = DataType::OSC; } @@ -87,7 +89,7 @@ AddPortEvent::pre_process() assert(_patch->path() == _path.parent()); size_t buffer_size = 1; - if (_type == "ingen:audio" || _type == "ingen:midi") + if (_type != "ingen:control") buffer_size = _engine.audio_driver()->buffer_size(); const size_t old_num_ports = _patch->num_ports(); @@ -145,6 +147,8 @@ AddPortEvent::execute(SampleCount nframes, FrameTime start, FrameTime end) _engine.audio_driver()->add_port(_driver_port); else if (_type == "ingen:midi") _engine.midi_driver()->add_port(_driver_port); + else if (_type == "ingen:osc") + cerr << "OSC DRIVER PORT" << endl; } -- cgit v1.2.1