diff options
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/ardour/send.h | 2 | ||||
-rw-r--r-- | libs/ardour/send.cc | 13 |
2 files changed, 15 insertions, 0 deletions
diff --git a/libs/ardour/ardour/send.h b/libs/ardour/ardour/send.h index 7bdc7ed02f..b47263b547 100644 --- a/libs/ardour/ardour/send.h +++ b/libs/ardour/ardour/send.h @@ -52,6 +52,8 @@ class Send : public Delivery bool can_support_io_configuration (const ChanCount& in, ChanCount& out) const; bool configure_io (ChanCount in, ChanCount out); + bool set_name (const std::string& str); + static uint32_t how_many_sends(); static void make_unique (XMLNode &, Session &); 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); +} |