const framepos_t preroll = _session->preroll_samples (start);
framepos_t ret = start;
-
+
if (start > preroll) {
start = start - preroll;
}
const framepos_t preroll = _session->preroll_samples (ph);
framepos_t start;
if (ph > preroll) {
- start = ph - preroll;
+ start = ph - preroll;
} else {
start = 0;
}
_session->request_preroll_record_trim (ph, preroll);
}
+void
+Editor::rec_with_count_in ()
+{
+ _session->request_count_in_record ();
+}
void
Editor::play_location (Location& location)
/* user could select points in any order */
selection->points.sort(PointsSelectionPositionSorter ());
-
+
/* Go through all selected points, making an AutomationRecord for each distinct AutomationList */
for (PointSelection::iterator sel_point = selection->points.begin(); sel_point != selection->points.end(); ++sel_point) {
const AutomationLine& line = (*sel_point)->line();
boost::shared_ptr<AutomationList> al = line.the_list();
bool erase = true;
-
+
if (dynamic_cast<AudioRegionGainLine*> (&line)) {
/* removing of first and last gain point in region gain lines is prohibited*/
if (line.is_last_point (*(*sel_point)) || line.is_first_point (*(*sel_point))) {
set_punch_range (tpl->start(), now, _("Auto Punch In/Out"));
_session->config.set_punch_out(true);
}
- } else {
+ } else {
if (_session->config.get_punch_out()) {
_session->config.set_punch_out(false);
}