Check whether punch-in is enabled and record is enabled in addition to if we are actively recording when deciding whether to run count-in clicks

This commit is contained in:
Alex Pilon
2018-12-27 16:26:01 -05:00
committed by Robin Gareus
parent e7091cb2cd
commit 53c6b7f909

View File

@@ -1625,7 +1625,7 @@ Session::start_transport ()
send_immediate_mmc (MIDI::MachineControlCommand (MIDI::MachineControl::cmdDeferredPlay));
}
if (actively_recording() && click_data && (config.get_count_in () || _count_in_once)) {
if ((actively_recording() || (config.get_punch_in() && get_record_enabled())) && click_data && (config.get_count_in () || _count_in_once)) {
_count_in_once = false;
/* calculate count-in duration (in audio samples)
* - use [fixed] tempo/meter at _transport_sample