summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/LV2Node.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-02-20 02:55:56 +0000
committerDavid Robillard <d@drobilla.net>2007-02-20 02:55:56 +0000
commita90f8d58bacb8f93a7e0b5486e2e862e94203721 (patch)
tree76aea132d1ed3e6850e05aba383cd145b0f71a6b /src/libs/engine/LV2Node.cpp
parentb31e71c04bf37f91159fcd5d9ad567c4c21dfd04 (diff)
downloadingen-a90f8d58bacb8f93a7e0b5486e2e862e94203721.tar.gz
ingen-a90f8d58bacb8f93a7e0b5486e2e862e94203721.tar.bz2
ingen-a90f8d58bacb8f93a7e0b5486e2e862e94203721.zip
Updated Ingen for most recent SLV2 API.
Minor (unlikely) SLV2 bug fixes. git-svn-id: http://svn.drobilla.net/lad/ingen@322 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/LV2Node.cpp')
-rw-r--r--src/libs/engine/LV2Node.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/engine/LV2Node.cpp b/src/libs/engine/LV2Node.cpp
index 3e88efc5..ebc6a72c 100644
--- a/src/libs/engine/LV2Node.cpp
+++ b/src/libs/engine/LV2Node.cpp
@@ -63,7 +63,7 @@ LV2Node::instantiate()
_ports = new Raul::Array<Port*>(num_ports);
- _instances = new SLV2Instance*[_poly];
+ _instances = new SLV2Instance[_poly];
size_t port_buffer_size = 0;
@@ -100,7 +100,7 @@ LV2Node::instantiate()
if (port_class == SLV2_CONTROL_INPUT || port_class == SLV2_AUDIO_INPUT) {
port = new InputPort<Sample>(this, port_name, j, _poly, DataType::FLOAT, port_buffer_size);
_ports->at(j) = port;
- } else if (port_class == SLV2_CONTROL_INPUT || port_class == SLV2_AUDIO_INPUT) {
+ } else if (port_class == SLV2_CONTROL_OUTPUT || port_class == SLV2_AUDIO_OUTPUT) {
port = new OutputPort<Sample>(this, port_name, j, _poly, DataType::FLOAT, port_buffer_size);
_ports->at(j) = port;
} else if (port_class == SLV2_MIDI_INPUT) {