From 67bb48c4df2eac73201eb460814362f2d5cb8a8b Mon Sep 17 00:00:00 2001 From: Greg Zharun Date: Tue, 23 Sep 2014 15:15:15 +0300 Subject: [PATCH] [Summary] Added transport stop when engine stops --- libs/ardour/audioengine.cc | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc index 69cc6180ea..41224a10b7 100644 --- a/libs/ardour/audioengine.cc +++ b/libs/ardour/audioengine.cc @@ -419,13 +419,6 @@ AudioEngine::do_reset_backend() // backup the device name std::string name = _backend->device_name (); - - std::cout << "AudioEngine::RESET::Halting session processing..." << std::endl; - if (_session && _running) { - // it's not a halt, but should be handled the same way: - // disable record, stop transport and I/O processign but save the data. - _session->engine_halted (); - } std::cout << "AudioEngine::RESET::Stoping engine..." << std::endl; stop(); @@ -839,6 +832,12 @@ AudioEngine::stop (bool for_latency) return 0; } + if (_session && _running) { + // it's not a halt, but should be handled the same way: + // disable record, stop transport and I/O processign but save the data. + _session->engine_halted (); + } + Glib::Threads::Mutex::Lock lm (_process_lock); if (_backend->stop ()) {