diff options
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | src/jalv.c | 14 |
2 files changed, 13 insertions, 4 deletions
@@ -1,12 +1,13 @@ jalv (1.4.7) unstable; + * Set Jack port order metadata * Exit on Jack shutdown (Patch from Robin Gareus) * Report Jack latency (Patch from Robin Gareus) * Exit GUI versions on interrupt * Fix semaphore correctness issues * Use moc-qt4 if present for systems with multiple Qt versions - -- David Robillard <d@drobilla.net> Fri, 13 Feb 2015 21:04:32 -0500 + -- David Robillard <d@drobilla.net> Sat, 21 Feb 2015 23:26:19 -0500 jalv (1.4.6) stable; @@ -390,10 +390,18 @@ activate_port(Jalv* jalv, #ifdef HAVE_JACK_METADATA if (port->jack_port) { + // Set port order to index + char index_str[16]; + snprintf(index_str, sizeof(index_str), "%d", port_index); + jack_set_property(jalv->jack_client, jack_port_uuid(port->jack_port), + "http://jackaudio.org/metadata/order", index_str, + "http://www.w3.org/2001/XMLSchema#integer"); + + // Set port pretty name to label LilvNode* name = lilv_port_get_name(jalv->plugin, port->lilv_port); - jack_set_property( - jalv->jack_client, jack_port_uuid(port->jack_port), - JACK_METADATA_PRETTY_NAME, lilv_node_as_string(name), NULL); + jack_set_property(jalv->jack_client, jack_port_uuid(port->jack_port), + JACK_METADATA_PRETTY_NAME, lilv_node_as_string(name), + "http://www.w3.org/2001/XMLSchema#string"); lilv_node_free(name); } #endif |