diff options
author | Robin Gareus <robin@gareus.org> | 2017-03-02 20:00:15 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-03-02 20:01:48 +0100 |
commit | 5524bac04bc7f4901991bd1fb4747abcb7b43db4 (patch) | |
tree | 07f9b07c2c557b5dc8a49399a31ad6a316fea91f /gtk2_ardour | |
parent | 12d99f6f6edf62db4b466be64f668b91c6d91c0b (diff) |
Don't try to auto-start engine for new sessions
Work around logic-flow in EngineDialog which should already have
done that, but may no longer heed this special-case if sample-rate
dropdown is refreshed to only devices supported ones.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 737f55de6c..38fceffdd8 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -5376,10 +5376,12 @@ ARDOUR_UI::do_audio_midi_setup (uint32_t desired_sample_rate) audio_midi_setup->set_desired_sample_rate (desired_sample_rate); audio_midi_setup->set_position (WIN_POS_CENTER); - if (Config->get_try_autostart_engine () || getenv ("TRY_AUTOSTART_ENGINE")) { - audio_midi_setup->try_autostart (); - if (ARDOUR::AudioEngine::instance()->running()) { - return 0; + if (desired_sample_rate != 0) { + if (Config->get_try_autostart_engine () || getenv ("TRY_AUTOSTART_ENGINE")) { + audio_midi_setup->try_autostart (); + if (ARDOUR::AudioEngine::instance()->running()) { + return 0; + } } } |