Add all_tracks_rec actions
[ardour.git] / libs / ardour / session.cc
index 3da7f6c071f302e085854fb079c8e54de21a1415..8f71ef29ef07ef8041a36523a8c1788c90a51e17 100644 (file)
@@ -1832,6 +1832,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)
 {