From 5a1ccca68baf9e8efffe3e0297730a911617693d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 17 Oct 2010 01:11:29 +0000 Subject: Support current versions of LV2 atom, atom-port, and context extensions. Working use case in this revision: lolep.parse => lolep.print (set parse input to some string, it will be parsed, send to print as an LV2 atom, then printed to the console by print). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2631 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/LV2Node.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/engine/LV2Node.cpp') diff --git a/src/engine/LV2Node.cpp b/src/engine/LV2Node.cpp index 872a7b83..e2b4b2cd 100644 --- a/src/engine/LV2Node.cpp +++ b/src/engine/LV2Node.cpp @@ -160,7 +160,8 @@ LV2Node::instantiate(BufferFactory& bufs) slv2_instance_free); if (!instance(i)) { - error << "Failed to instantiate plugin" << endl; + error << "Failed to instantiate plugin " << _lv2_plugin->uri() + << " voice " << i << endl; return false; } @@ -203,7 +204,7 @@ LV2Node::instantiate(BufferFactory& bufs) "http://lv2plug.in/ns/lv2core#portProperty"); SLV2Value supports_pred = slv2_value_new_uri(info->lv2_world(), - LV2_ATOM_URI "#supports"); + "http://lv2plug.in/ns/ext/atom-port#supports"); //SLV2Value as_large_as_pred = slv2_value_new_uri(info->lv2_world(), // "http://lv2plug.in/ns/ext/resize-port#asLargeAs"); @@ -273,6 +274,7 @@ LV2Node::instantiate(BufferFactory& bufs) } if (data_type == PortType::UNKNOWN || direction == UNKNOWN) { + warn << "Unknown type or direction for port `" << port_name << "'" << endl; ret = false; break; } @@ -306,14 +308,12 @@ LV2Node::instantiate(BufferFactory& bufs) } } - // Set obj:supports properties + // Set aport:supports properties SLV2Values types = slv2_port_get_value(plug, id, supports_pred); for (uint32_t i = 0; i < slv2_values_size(types); ++i) { SLV2Value type = slv2_values_get_at(types, i); - Raul::info << path() << " port " << id << " supports " << - slv2_value_as_uri(type) << std::endl; if (slv2_value_is_uri(type)) { - port->add_property(uris.obj_supports, Raul::URI(slv2_value_as_uri(type))); + port->add_property(uris.aport_supports, Raul::URI(slv2_value_as_uri(type))); } } @@ -390,7 +390,7 @@ LV2Node::message_run(MessageContext& context) _valid_ports = calloc(num_ports() / 8, 1); if (_message_funcs) - (*_message_funcs->message_run)(instance(0)->lv2_handle, _valid_ports, _valid_ports); + (*_message_funcs->run)(instance(0)->lv2_handle, _valid_ports, _valid_ports); } -- cgit v1.2.1