aboutsummaryrefslogtreecommitdiffstats
path: root/src/jalv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/jalv.c')
-rw-r--r--src/jalv.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/jalv.c b/src/jalv.c
index 71b7aa0..e533ba7 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -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