diff options
author | Robin Gareus <robin@gareus.org> | 2016-04-17 18:34:17 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-04-17 18:34:17 +0200 |
commit | 10bffda8107082afae440924ee23508755130445 (patch) | |
tree | db17beda4ae7d53e7acb4f25d8f5cad93180fb9d /libs/ardour/port.cc | |
parent | 10140a8e68c3e6d105f89c7085ce8f44118ad95c (diff) |
add API to set pretty names for ardour ports
Diffstat (limited to 'libs/ardour/port.cc')
-rw-r--r-- | libs/ardour/port.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/ardour/port.cc b/libs/ardour/port.cc index 06169dd576..a64d617eba 100644 --- a/libs/ardour/port.cc +++ b/libs/ardour/port.cc @@ -103,6 +103,19 @@ Port::pretty_name(bool fallback_to_name) const return ""; } +bool +Port::set_pretty_name(const std::string& n) +{ + if (_port_handle) { + if (0 == port_engine.set_port_property (_port_handle, + "http://jackaudio.org/metadata/pretty-name", n, "")) + { + return true; + } + } + return false; +} + void Port::drop () { |