From cbd666d1ba7681264c2c509c1bbc8999136d4f17 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 25 Mar 2012 03:05:52 +0000 Subject: Update for latest atom extension. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4104 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/LV2Node.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/server/LV2Node.cpp') 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) { -- cgit v1.2.1