Add EngineControl::stop_engine method to show errors when stopping engine

This replaces using ARDOUR_UI::disconnect_from_session which is only used by the
EngineControl class. ARDOUR_UI::disconnect_from_session also disconnects from
the AudioEngine::Halted signal which seems unnecessary as Halted is not emitted
when stopping the engine and calling update_sample_rate() which is already
handled when the AudioEngine::Stopped signal is emitted.
This commit is contained in:
Tim Mayberry 2015-10-03 14:09:45 +10:00
parent 1195aeb64e
commit cd4dd08931
2 changed files with 17 additions and 5 deletions

View file

@ -300,6 +300,7 @@ class EngineControl : public ArdourDialog, public PBD::ScopedConnectionList {
void post_push ();
void update_sensitivity ();
bool start_engine ();
bool stop_engine ();
/* latency measurement */
void latency_button_clicked ();