From cd4dd0893153729e5ffbfcfeeac6530c0025aee7 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Sat, 3 Oct 2015 14:09:45 +1000 Subject: 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. --- gtk2_ardour/engine_dialog.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gtk2_ardour/engine_dialog.h') diff --git a/gtk2_ardour/engine_dialog.h b/gtk2_ardour/engine_dialog.h index ea56b94852..7fc0106b36 100644 --- a/gtk2_ardour/engine_dialog.h +++ b/gtk2_ardour/engine_dialog.h @@ -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 (); -- cgit v1.2.3