summaryrefslogtreecommitdiff
path: root/libs/ardour/session_state.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-09-30 02:45:13 +0200
committerRobin Gareus <robin@gareus.org>2017-09-30 02:45:13 +0200
commit72fb8a5342f19ccf88ff9e59de36c57e3f172a22 (patch)
treea5579668148700594e6cdc65bed1b09025d89f1c /libs/ardour/session_state.cc
parent915b308a88efc98ab1b2a58bed969bb7c41bea64 (diff)
Align punch in/out recording with latency-compensation
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r--libs/ardour/session_state.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc
index e8e780d34a..3bdde95f27 100644
--- a/libs/ardour/session_state.cc
+++ b/libs/ardour/session_state.cc
@@ -4038,9 +4038,9 @@ Session::config_changed (std::string p, bool ours)
if ((location = _locations->auto_punch_location()) != 0) {
if (config.get_punch_in ()) {
- replace_event (SessionEvent::PunchIn, location->start());
+ auto_punch_start_changed (location);
} else {
- remove_event (location->start(), SessionEvent::PunchIn);
+ clear_events (SessionEvent::PunchIn);
}
}
@@ -4051,7 +4051,7 @@ Session::config_changed (std::string p, bool ours)
if ((location = _locations->auto_punch_location()) != 0) {
if (config.get_punch_out()) {
- replace_event (SessionEvent::PunchOut, location->end());
+ auto_punch_end_changed (location);
} else {
clear_events (SessionEvent::PunchOut);
}