# HG changeset patch # User Chris Cannam # Date 1560529177 -3600 # Node ID a82b9d4103931650e3d3c7ffa54ef0530ba3d875 # Parent 1f18e0f64af8f7aa7958356a3b9166aea8492ee4 Reset source sample rate when last model removed diff -r 1f18e0f64af8 -r a82b9d410393 audio/AudioCallbackPlaySource.cpp --- a/audio/AudioCallbackPlaySource.cpp Thu Jun 13 20:36:10 2019 +0100 +++ b/audio/AudioCallbackPlaySource.cpp Fri Jun 14 17:19:37 2019 +0100 @@ -358,6 +358,10 @@ m_audioGenerator->removeModel(model); + if (m_models.empty()) { + m_sourceSampleRate = 0; + } + m_mutex.unlock(); clearRingBuffers();