the return of the 1 second fade out at session close

This commit is contained in:
Paul Davis 2015-10-02 16:29:58 -04:00
parent a05e48dab0
commit 64b4877ef6

View File

@ -282,6 +282,8 @@ AudioEngine::process_callback (pframes_t nframes)
if (session_remove_pending) {
cerr << "SRP, countdown = " << session_removal_countdown << endl;
/* perform the actual session removal */
if (session_removal_countdown < 0) {
@ -613,7 +615,8 @@ AudioEngine::remove_session ()
if (_session) {
session_remove_pending = true;
session_removal_countdown = 0;
/* signal the start of the fade out countdown */
session_removal_countdown = -1;
session_removed.wait(_process_lock);
}