summaryrefslogtreecommitdiff
path: root/libs/ardour/send.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/send.cc')
-rw-r--r--libs/ardour/send.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/ardour/send.cc b/libs/ardour/send.cc
index 852f27d38f..5874b91cf6 100644
--- a/libs/ardour/send.cc
+++ b/libs/ardour/send.cc
@@ -167,3 +167,16 @@ Send::make_unique (XMLNode &state, Session &session)
io->property("name")->set_value (name);
}
}
+
+bool
+Send::set_name (const std::string& new_name)
+{
+ char buf[32];
+ std::string unique_name;
+
+ snprintf (buf, sizeof (buf), "%u", _bitslot);
+ unique_name = new_name;
+ unique_name += buf;
+
+ return Delivery::set_name (unique_name);
+}