mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-21 06:06:25 +01:00
[Summary] Improved logs when resetting device
This commit is contained in:
parent
e506279dd0
commit
76ece84d51
1 changed files with 8 additions and 4 deletions
|
|
@ -388,23 +388,25 @@ AudioEngine::do_reset_backend()
|
|||
|
||||
g_atomic_int_dec_and_test (&_hw_reset_request_count);
|
||||
|
||||
std::cout << "AudioEngine::RESET::Reset request processing" << std::endl;
|
||||
|
||||
// backup the device name
|
||||
std::string name = _backend->device_name ();
|
||||
|
||||
std::cout << "RESET::HALT" << std::endl;
|
||||
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 << "RESET::Stoping" << std::endl;
|
||||
std::cout << "AudioEngine::RESET::Stoping engine..." << std::endl;
|
||||
stop();
|
||||
|
||||
std::cout << "RESET::Reseting" << std::endl;
|
||||
std::cout << "AudioEngine::RESET::Reseting device..." << std::endl;
|
||||
if ( 0 == _backend->reset_device () ) {
|
||||
|
||||
std::cout << "RESET::Starting" << std::endl;
|
||||
std::cout << "AudioEngine::RESET::Starting engine..." << std::endl;
|
||||
start ();
|
||||
|
||||
// inform about possible changes
|
||||
|
|
@ -413,6 +415,8 @@ AudioEngine::do_reset_backend()
|
|||
DeviceError();
|
||||
}
|
||||
|
||||
std::cout << "AudioEngine::RESET::Done." << std::endl;
|
||||
|
||||
_reset_request_lock.lock();
|
||||
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue