summaryrefslogtreecommitdiff
path: root/libs/ardour/port.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/port.cc')
-rw-r--r--libs/ardour/port.cc13
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 ()
{