diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-01-28 23:02:11 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-01-28 23:05:28 -0500 |
commit | 4a5b81a8384e1fcbe120a71d7841922f2748c05a (patch) | |
tree | 30c2de306d099c4aa77c17783609c1ce698da906 /libs/ardour/route.cc | |
parent | c0a843a905a094659bbf95fd9a9602edcce60f54 (diff) |
add new API to Route to get name of "well-known" nth-send
Route::nth_send() has the wrong semantics in Mixbus for this purpose. Probably
need to revisit this at some point
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r-- | libs/ardour/route.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 9f29dbad75..6effb27fc4 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -5551,3 +5551,23 @@ Route::send_enable_controllable (uint32_t n) const return boost::shared_ptr<AutomationControl>(); #endif } + +string +Route::send_name (uint32_t n) const +{ +#ifdef MIXBUS + if (n >= 8) { + return string(); + } + boost::shared_ptr<Route> r = _session.get_mixbus (n); + assert (r); + return r->name(); +#else + boost::shared_ptr<Processor> p = nth_send (n); + if (p) { + return p->name(); + } else { + return string(); + } +#endif +} |