Browse Source

update cbox

master
Nils 2 years ago
parent
commit
8c0b023a18
  1. 9
      template/calfbox/metadata.py

9
template/calfbox/metadata.py

@ -3,7 +3,7 @@
"""
This file implements the JackIO Python side of Jack Medata as described here:
http://www.jackaudio.org/files/docs/html/group__Metadata.html
https://jackaudio.org/api/metadata_8h.html
"""
import base64 # for icons
@ -64,6 +64,13 @@ class Metadata:
return TypeError("value {} must be int or str but was {}".format(value, type(value)))
do_cmd("/io/client_set_property", None, [key, value, jackPropertyType])
@staticmethod
def client_remove_property(key):
"""
This is directly for our client, which we do not need to provide here.
"""
do_cmd("/io/client_remove_property", None, [key])
@staticmethod
def remove_property(port, key):
"""port is the portname as string System:out_1"""

Loading…
Cancel
Save