From 17e4c2f96bc684d86ff96d2c8ca99aa80d0bd6d6 Mon Sep 17 00:00:00 2001 From: grygoriiz Date: Wed, 2 Jul 2014 14:26:57 +0300 Subject: [PATCH] [Summary] Added engine, record and I/O processing stop when device configuration changes --- libs/ardour/audioengine.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc index 20c2ce2ed4..b531e5f178 100644 --- a/libs/ardour/audioengine.cc +++ b/libs/ardour/audioengine.cc @@ -384,6 +384,11 @@ AudioEngine::do_reset_backend() std::string name = _backend->device_name (); stop(); + if (_session) { + // 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(); + } // "hard reset" the device _backend->drop_device();