diff options
author | David Robillard <d@drobilla.net> | 2007-07-23 02:33:55 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-07-23 02:33:55 +0000 |
commit | e2cfcb6288b000abccb15831e9dde8b8283eb36e (patch) | |
tree | cba97a0b17a07d159f169380c7dcf7f7ae97cb1a /src/libs/engine/events | |
parent | 35541af3f4fdf9e5b934012c01bd2724b00fb7b8 (diff) | |
download | ingen-e2cfcb6288b000abccb15831e9dde8b8283eb36e.tar.gz ingen-e2cfcb6288b000abccb15831e9dde8b8283eb36e.tar.bz2 ingen-e2cfcb6288b000abccb15831e9dde8b8283eb36e.zip |
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
Diffstat (limited to 'src/libs/engine/events')
-rw-r--r-- | src/libs/engine/events/AddPortEvent.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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; } |