diff options
Diffstat (limited to 'libs/backends/jack/jack_portengine.cc')
-rw-r--r-- | libs/backends/jack/jack_portengine.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libs/backends/jack/jack_portengine.cc b/libs/backends/jack/jack_portengine.cc index 10b2efed6b..0b25ecbe01 100644 --- a/libs/backends/jack/jack_portengine.cc +++ b/libs/backends/jack/jack_portengine.cc @@ -147,6 +147,20 @@ JACKAudioBackend::get_port_property (PortHandle port, const std::string& key, st #endif } +int +JACKAudioBackend::set_port_property (PortHandle port, const std::string& key, const std::string& value, const std::string& type) +{ +#ifdef HAVE_JACK_METADATA // really everyone ought to have this by now. + int rv = -1; + jack_client_t* client = _jack_connection->jack(); + jack_uuid_t uuid = jack_port_uuid((jack_port_t*) port); + return jack_set_property(client, uuid, key.c_str(), value.c_str(), type.c_str()); + return rv; +#else + return -1; +#endif +} + PortEngine::PortHandle JACKAudioBackend:: get_port_by_name (const std::string& name) const { |