aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-02-22 04:29:56 +0000
committerDavid Robillard <d@drobilla.net>2015-02-22 04:29:56 +0000
commit3f186dfe7b31633a9a1f5b389afdd31a8a249a12 (patch)
tree0272fb628e13f3b520bac59766da7e673e7f9387 /src
parent68314ba2d83fd9f15b414965dff6d22b9681a5cf (diff)
downloadjalv-3f186dfe7b31633a9a1f5b389afdd31a8a249a12.tar.gz
jalv-3f186dfe7b31633a9a1f5b389afdd31a8a249a12.tar.bz2
jalv-3f186dfe7b31633a9a1f5b389afdd31a8a249a12.zip
Set Jack port order metadata.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@5597 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-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