Tracks specific fix for SR reverting to previous value while creating new session

This commit is contained in:
Paul Davis 2015-05-11 18:51:14 -04:00
parent c5a657ceee
commit d0b5f87fba
1 changed files with 4 additions and 0 deletions

View File

@ -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 ();