summaryrefslogtreecommitdiff
path: root/libs/ardour/route.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2013-07-09 13:12:09 +0200
committerRobin Gareus <robin@gareus.org>2013-07-10 15:27:15 +0200
commit46c1e573c4213b24a22f0346104460a8352d1279 (patch)
tree3a18b3d0c886c38a61ffcc88d94fc2c55717d383 /libs/ardour/route.cc
parentfe9650d8939db9474a8dbd13a33911c18fd254c3 (diff)
show track-ID in mixer
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r--libs/ardour/route.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc
index 9d121f6055..ba78b0df8b 100644
--- a/libs/ardour/route.cc
+++ b/libs/ardour/route.cc
@@ -3488,6 +3488,18 @@ Route::set_name (const string& str)
return ret;
}
+std::string
+Route::id_and_name (std::string id_prefix, std::string id_postfix)
+{
+ if (_unique_id == 0) {
+ return name();
+ } else {
+ stringstream ss;
+ ss << id_prefix << _unique_id << id_postfix << name();
+ return ss.str();
+ }
+}
+
/** Set the name of a route in an XML description.
* @param node XML <Route> node to set the name in.
* @param name New name.