summaryrefslogtreecommitdiff
path: root/gtk2_ardour/engine_dialog.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-05-01 12:31:30 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2014-05-01 12:31:35 -0400
commit079d6a2866509995b4508dbac7ded3e34ecbf5fe (patch)
tree16ffd3636c80294ef468844ce37722d68799e98f /gtk2_ardour/engine_dialog.cc
parente69531b953c5fe717b88b051acd087de3caed166 (diff)
if using the audio/MIDI setup dialog because there are >1 backends, but the chosen backend is not under our control (i.e. JACK), remember to start it before returning from the dialog
Diffstat (limited to 'gtk2_ardour/engine_dialog.cc')
-rw-r--r--gtk2_ardour/engine_dialog.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk2_ardour/engine_dialog.cc b/gtk2_ardour/engine_dialog.cc
index 545413b6ef..7150836989 100644
--- a/gtk2_ardour/engine_dialog.cc
+++ b/gtk2_ardour/engine_dialog.cc
@@ -1332,6 +1332,13 @@ EngineControl::EngineControl ()
backend->set_buffer_size (get_buffer_size());
}
+ if (start) {
+ if (ARDOUR::AudioEngine::instance()->start ()) {
+ error << string_compose (_("Could not start backend engine %1"), backend->name()) << endmsg;
+ return -1;
+ }
+ }
+
post_push ();
return 0;