summaryrefslogtreecommitdiffstats
path: root/src/server/LV2Node.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-25 03:05:52 +0000
committerDavid Robillard <d@drobilla.net>2012-03-25 03:05:52 +0000
commitcbd666d1ba7681264c2c509c1bbc8999136d4f17 (patch)
treed77544516d9100092c59c821f5118a0c65cfda2f /src/server/LV2Node.cpp
parent94f372e95ecd718b7d2ed4f2aa1f0437e7968efb (diff)
downloadingen-cbd666d1ba7681264c2c509c1bbc8999136d4f17.tar.gz
ingen-cbd666d1ba7681264c2c509c1bbc8999136d4f17.tar.bz2
ingen-cbd666d1ba7681264c2c509c1bbc8999136d4f17.zip
Update for latest atom extension.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4104 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/LV2Node.cpp')
-rw-r--r--src/server/LV2Node.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/server/LV2Node.cpp b/src/server/LV2Node.cpp
index d9934823..3a4af47b 100644
--- a/src/server/LV2Node.cpp
+++ b/src/server/LV2Node.cpp
@@ -237,10 +237,8 @@ LV2Node::instantiate(BufferFactory& bufs)
} else if (lilv_port_is_a(plug, id, info->audio_class)) {
port_type = PortType::AUDIO;
buffer_type = uris.atom_Sound;
- } else if (lilv_port_is_a(plug, id, info->value_port_class)) {
- port_type = PortType::VALUE;
- } else if (lilv_port_is_a(plug, id, info->message_port_class)) {
- port_type = PortType::MESSAGE;
+ } else if (lilv_port_is_a(plug, id, info->atom_port_class)) {
+ port_type = PortType::ATOM;
}
// Get buffer type if necessary (value and message ports)
@@ -259,7 +257,7 @@ LV2Node::instantiate(BufferFactory& bufs)
port_buffer_size = bufs.default_buffer_size(buffer_type);
- if (port_type == PortType::VALUE || port_type == PortType::MESSAGE) {
+ if (port_type == PortType::ATOM) {
// Get default value, and its length
LilvNodes* defaults = lilv_port_get_value(plug, id, default_pred);
LILV_FOREACH(nodes, i, defaults) {