update flow when loading a new session with different SR.
authorRobin Gareus <robin@gareus.org>
Mon, 18 Apr 2016 13:18:36 +0000 (15:18 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 18 Apr 2016 13:18:36 +0000 (15:18 +0200)
gtk2_ardour/engine_dialog.cc

index be211702649a0f3fd2b3ea101f6bbb52c15010f2..48cf35ba8f8b5ab06a7ab2b9528e04f87048260a 100644 (file)
@@ -2771,6 +2771,9 @@ void
 EngineControl::set_desired_sample_rate (uint32_t sr)
 {
        _desired_sample_rate = sr;
+       if (ARDOUR::AudioEngine::instance()->running()) {
+               stop_engine ();
+       }
        device_changed ();
 }