diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-03-07 14:59:40 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-05-31 15:30:39 -0400 |
commit | 1f6800d421fc41e6797e0bc3b6e78a6e07e97120 (patch) | |
tree | a08ec9f91927f3f0c438e4b749b351a146ebc92f /libs/ardour/session.cc | |
parent | a03d969a978126d72f0825096d9d9ec89816a0d9 (diff) |
redesign Route and VCA objects to inherit from ARDOUR::Stripable
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r-- | libs/ardour/session.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index b9dbaa72fd..86d698a2cb 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -4195,6 +4195,21 @@ Session::route_by_remote_id (uint32_t id) } +boost::shared_ptr<Stripable> +Session::stripable_by_remote_id (uint32_t id) +{ + boost::shared_ptr<RouteList> r = routes.reader (); + + for (RouteList::iterator i = r->begin(); i != r->end(); ++i) { + if ((*i)->remote_control_id() == id) { + return *i; + } + } + + return boost::shared_ptr<Route> ((Route*) 0); +} + + boost::shared_ptr<Route> Session::route_by_selected_count (uint32_t id) { |