13
0

Stop engine for new session creation

This restores Ardour5 behavior and works around a missing "OK"
button in the engine-dialog.
This commit is contained in:
Robin Gareus 2020-01-10 18:11:42 +01:00
parent afe52fbff5
commit abc6f24d10
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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 ();