Add option to reset x-run count on record-start

This commit is contained in:
Robin Gareus 2020-04-07 23:13:57 +02:00
parent 69067b9d99
commit 989e388cad
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 4 additions and 0 deletions

View file

@ -156,6 +156,7 @@ CONFIG_VARIABLE (bool, use_click_emphasis, "use-click-emphasis", true)
*/
CONFIG_VARIABLE (bool, skip_playback, "skip-playback", true)
CONFIG_VARIABLE (bool, plugins_stop_with_transport, "plugins-stop-with-transport", false)
CONFIG_VARIABLE (bool, recording_resets_xrun_count, "recording-resets-xrun-count,", false)
CONFIG_VARIABLE (bool, stop_recording_on_xrun, "stop-recording-on-xrun", false)
CONFIG_VARIABLE (bool, create_xrun_marker, "create-xrun-marker", true)
CONFIG_VARIABLE (bool, stop_at_session_end, "stop-at-session-end", false)

View file

@ -1897,6 +1897,9 @@ Session::enable_record ()
_last_record_location = _transport_sample;
send_immediate_mmc (MIDI::MachineControlCommand (MIDI::MachineControl::cmdRecordStrobe));
if (Config->get_recording_resets_xrun_count ()) {
reset_xrun_count ();
}
if (Config->get_monitoring_model() == HardwareMonitoring && config.get_auto_input()) {
set_track_monitor_input_status (true);
}