Bypass disk xrun bail out goto's when stop on xrun option is not selected. For now the dialog still appears. Do we want to keep it as a dialog or move it to the log window?

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2629 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Doug McLain 2007-11-12 23:24:20 +00:00
parent a461d6b3b3
commit 4f9eaf6858
2 changed files with 7 additions and 3 deletions

View file

@ -410,7 +410,7 @@ ARDOUR_UI::install_actions ()
ActionManager::register_toggle_action (option_actions, X_("StopPluginsWithTransport"), _("Stop plugins with transport"), mem_fun (*this, &ARDOUR_UI::toggle_StopPluginsWithTransport));
ActionManager::register_toggle_action (option_actions, X_("VerifyRemoveLastCapture"), _("Verify remove last capture"), mem_fun (*this, &ARDOUR_UI::toggle_VerifyRemoveLastCapture));
ActionManager::register_toggle_action (option_actions, X_("PeriodicSafetyBackups"), _("Make periodic safety backups"), mem_fun (*this, &ARDOUR_UI::toggle_PeriodicSafetyBackups));
ActionManager::register_toggle_action (option_actions, X_("StopRecordingOnXrun"), _("Stop recording on xrun"), mem_fun (*this, &ARDOUR_UI::toggle_StopRecordingOnXrun));
ActionManager::register_toggle_action (option_actions, X_("StopRecordingOnXrun"), _("Stop recording on audio/disk xrun"), mem_fun (*this, &ARDOUR_UI::toggle_StopRecordingOnXrun));
ActionManager::register_toggle_action (option_actions, X_("StopTransportAtEndOfSession"), _("Stop transport at session end"), mem_fun (*this, &ARDOUR_UI::toggle_StopTransportAtEndOfSession));
ActionManager::register_toggle_action (option_actions, X_("GainReduceFastTransport"), _("-12dB gain reduce ffwd/rewind"), mem_fun (*this, &ARDOUR_UI::toggle_GainReduceFastTransport));
ActionManager::register_toggle_action (option_actions, X_("LatchedRecordEnable"), _("Rec-enable stays engaged at stop"), mem_fun (*this, &ARDOUR_UI::toggle_LatchedRecordEnable));

View file

@ -647,7 +647,9 @@ AudioDiskstream::process (nframes_t transport_frame, nframes_t nframes, nframes_
if (rec_nframes > total) {
DiskOverrun ();
goto out;
if (Config->get_stop_recording_on_xrun()) {
goto out;
}
}
Sample* buf = _io->input (n)->get_buffer (nframes) + offset;
@ -743,7 +745,9 @@ AudioDiskstream::process (nframes_t transport_frame, nframes_t nframes, nframes_
if (necessary_samples > total) {
DiskUnderrun ();
goto out;
if (Config->get_stop_recording_on_xrun()) {
goto out;
}
} else {