diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2016-01-19 14:00:03 -0600 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2016-01-19 14:00:03 -0600 |
commit | 5493e20c847c404ea5f349adab77691e2af0b750 (patch) | |
tree | 92be1cf9e2b7931fc8ff843f311af68902356f85 /libs/ardour/session.cc | |
parent | fe7aac8dacf6abc83c4c2821e3237b1b551ed8b1 (diff) |
Add all_tracks_rec actions
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r-- | libs/ardour/session.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 3da7f6c071..8f71ef29ef 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -1833,6 +1833,19 @@ Session::enable_record () } void +Session::set_all_tracks_record_enabled (bool enable ) +{ + boost::shared_ptr<RouteList> rl = routes.reader(); + for (RouteList::iterator i = rl->begin(); i != rl->end(); ++i) { + boost::shared_ptr<Track> tr = boost::dynamic_pointer_cast<Track> (*i); + if (tr) { + tr->set_record_enabled (enable, this); + } + } +} + + +void Session::disable_record (bool rt_context, bool force) { RecordState rs; |