From d75ca2cf5d550b094f29d0f4dcff4ca4e6614bc0 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 11 May 2015 18:51:14 -0400 Subject: [PATCH] Tracks specific fix for SR reverting to previous value while creating new session --- libs/ardour/session.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index f1e3b19732..ac86a36124 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -293,6 +293,10 @@ Session::Session (AudioEngine &eng, pre_engine_init (fullpath); if (_is_new) { + +#ifdef USE_TRACKS_CODE_FEATURES + sr = EngineStateController::instance()->get_current_sample_rate(); +#endif if (ensure_engine (sr)) { destroy (); throw failed_constructor ();