summaryrefslogtreecommitdiffstats
path: root/src/libs/engine
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-08-08 19:29:23 +0000
committerDavid Robillard <d@drobilla.net>2007-08-08 19:29:23 +0000
commitfccb1edce5dda41bdfef12340a5d5b95b86a1389 (patch)
tree8ee5dfed93a10bcce42161a986179f10f256ae9a /src/libs/engine
parent7867b57b4a8fc21d635453b20138930cbc920085 (diff)
downloadingen-fccb1edce5dda41bdfef12340a5d5b95b86a1389.tar.gz
ingen-fccb1edce5dda41bdfef12340a5d5b95b86a1389.tar.bz2
ingen-fccb1edce5dda41bdfef12340a5d5b95b86a1389.zip
Update ingen for SLV2 changes.
SLV2 0.2.0. git-svn-id: http://svn.drobilla.net/lad/ingen@688 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine')
-rw-r--r--src/libs/engine/LV2Node.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libs/engine/LV2Node.cpp b/src/libs/engine/LV2Node.cpp
index 8694b5e9..ccad761f 100644
--- a/src/libs/engine/LV2Node.cpp
+++ b/src/libs/engine/LV2Node.cpp
@@ -94,22 +94,22 @@ LV2Node::instantiate()
port_path = path() + "/" + port_name;
SLV2PortDirection port_direction = slv2_port_get_direction(_lv2_plugin, id);
- SLV2PortType port_type = slv2_port_get_type(_lv2_plugin, id);
+ SLV2PortDataType port_type = slv2_port_get_data_type(_lv2_plugin, id);
// FIXME: MIDI/OSC buffer size?
- if (port_type != SLV2_PORT_TYPE_CONTROL)
+ if (port_type != SLV2_PORT_DATA_TYPE_CONTROL)
port_buffer_size = _buffer_size;
else
port_buffer_size = 1;
DataType data_type = DataType::UNKNOWN;
switch (port_type) {
- case SLV2_PORT_TYPE_CONTROL:
- case SLV2_PORT_TYPE_AUDIO:
+ case SLV2_PORT_DATA_TYPE_CONTROL:
+ case SLV2_PORT_DATA_TYPE_AUDIO:
data_type = DataType::FLOAT; break;
- case SLV2_PORT_TYPE_MIDI:
+ case SLV2_PORT_DATA_TYPE_MIDI:
data_type = DataType::MIDI; break;
- case SLV2_PORT_TYPE_OSC:
+ case SLV2_PORT_DATA_TYPE_OSC:
data_type = DataType::OSC;
default:
break;
@@ -130,7 +130,7 @@ LV2Node::instantiate()
else
port = new OutputPort(this, port_name, j, _poly, data_type, port_buffer_size);
- if (is_input && port_type == SLV2_PORT_TYPE_CONTROL)
+ if (is_input && port_type == SLV2_PORT_DATA_TYPE_CONTROL)
((AudioBuffer*)port->buffer(0))->set(slv2_port_get_default_value(_lv2_plugin, id), 0);
_ports->at(j) = port;