- vector<sigc::connection> playlist_connections;
- sigc::connection playlist_change_connection;
-
- list<sigc::connection> rec_data_ready_connections;
- jack_nframes_t last_rec_data_frame;
- map<boost::shared_ptr<ARDOUR::Source>, bool> rec_data_ready_map;
+ PBD::ScopedConnectionList playlist_connections;
+ PBD::ScopedConnection playlist_switched_connection;
+
+ ARDOUR::layer_t _layers;
+ LayerDisplay _layer_display;
+
+ double height;
+
+ PBD::ScopedConnectionList rec_data_ready_connections;
+ framepos_t last_rec_data_frame;
+
+ /* When recording, the session time at which a new layer must be created for the region
+ being recorded, or max_framepos if not applicable.
+ */
+ framepos_t _new_rec_layer_time;
+ void setup_new_rec_layer_time (boost::shared_ptr<ARDOUR::Region>);
+
+private:
+ void update_coverage_frames ();