From abc6f24d10264d546f8b1fd482d3cd846340bc4b Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 10 Jan 2020 18:11:42 +0100 Subject: Stop engine for new session creation This restores Ardour5 behavior and works around a missing "OK" button in the engine-dialog. --- gtk2_ardour/ardour_ui_session.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gtk2_ardour/ardour_ui_session.cc') diff --git a/gtk2_ardour/ardour_ui_session.cc b/gtk2_ardour/ardour_ui_session.cc index 10b0f9e4b1..815961985c 100644 --- a/gtk2_ardour/ardour_ui_session.cc +++ b/gtk2_ardour/ardour_ui_session.cc @@ -549,6 +549,15 @@ ARDOUR_UI::build_session (const std::string& path, const std::string& snap_name, return build_session_stage_two (path, snap_name, session_template, bus_profile); } + /* Work-around missing "OK" button: + * When the engine is running. The way to proceed w/o engine re-start + * is to simply close the dialog. This is not obvious. + * + * Ideally an engine restart should be avoided since it can invalidate + * latency-calibration. + */ + ARDOUR::AudioEngine::instance()->stop(); + /* Ask for the Sample-rate to use with the new session */ audio_midi_setup->set_position (WIN_POS_CENTER); audio_midi_setup->set_modal (); -- cgit v1.2.3