diff options
author | Robin Gareus <robin@gareus.org> | 2020-04-07 23:13:57 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-07 23:14:11 +0200 |
commit | 989e388cadd955d1228403838d23ed58fec68c9f (patch) | |
tree | d7fef0a3ea92beb8a657499a73cab049d8d85d64 | |
parent | 69067b9d99c3e15f66723da77dcfc19c5a65519f (diff) |
Add option to reset x-run count on record-start
-rw-r--r-- | libs/ardour/ardour/rc_configuration_vars.h | 1 | ||||
-rw-r--r-- | libs/ardour/session.cc | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/ardour/rc_configuration_vars.h b/libs/ardour/ardour/rc_configuration_vars.h index 3d8094d39c..cde834384f 100644 --- a/libs/ardour/ardour/rc_configuration_vars.h +++ b/libs/ardour/ardour/rc_configuration_vars.h @@ -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) diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 2fcc58e048..2b0b9c0921 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -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); } |