Skip to content

Commit 50e5e3b

Browse files
committed
Consistently ignore punch-in/out without punch-range
1 parent 51030a9 commit 50e5e3b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

libs/ardour/route.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6198,7 +6198,7 @@ Route::monitoring_state () const
61986198
* TODO: FIXME
61996199
*/
62006200

6201-
if (_session.config.get_punch_in() || _session.config.get_punch_out()) {
6201+
if ((_session.config.get_punch_in() || _session.config.get_punch_out()) && 0 != _session.locations()->auto_punch_location ()) {
62026202
session_rec = _session.actively_recording ();
62036203
} else {
62046204
session_rec = _session.get_record_enabled();

libs/ardour/session.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2288,7 +2288,7 @@ Session::maybe_enable_record (bool rt_context)
22882288

22892289
if (_transport_fsm->transport_speed() != 0) {
22902290
maybe_allow_only_punch ();
2291-
if (!config.get_punch_in()) {
2291+
if (!config.get_punch_in() || 0 == locations()->auto_punch_location ()) {
22922292
enable_record ();
22932293
}
22942294
/* When rolling, start recording immediately.

libs/ardour/session_transport.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ Session::start_transport (bool after_loop)
521521

522522
switch (record_status()) {
523523
case Enabled:
524-
if (!config.get_punch_in()) {
524+
if (!config.get_punch_in() || 0 == locations()->auto_punch_location ()) {
525525
/* This is only for UIs (keep blinking rec-en before
526526
* punch-in, don't show rec-region etc). The UI still
527527
* depends on SessionEvent::PunchIn and ensuing signals.

0 commit comments

Comments
 (0)