From 64b4877ef64b764ef44e758661606ef0f08c0e8a Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 2 Oct 2015 16:29:58 -0400 Subject: the return of the 1 second fade out at session close --- libs/ardour/audioengine.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc index c5e2f17d47..8aa89fa42c 100644 --- a/libs/ardour/audioengine.cc +++ b/libs/ardour/audioengine.cc @@ -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); } -- cgit v1.2.3