Mercurial > hg > svapp
comparison audio/AudioCallbackPlaySource.cpp @ 680:a82b9d410393
Reset source sample rate when last model removed
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2019 17:19:37 +0100 |
parents | e2715204feaa |
children | 161063152ddd |
comparison
equal
deleted
inserted
replaced
679:1f18e0f64af8 | 680:a82b9d410393 |
---|---|
356 } | 356 } |
357 m_lastModelEndFrame = lastEnd; | 357 m_lastModelEndFrame = lastEnd; |
358 | 358 |
359 m_audioGenerator->removeModel(model); | 359 m_audioGenerator->removeModel(model); |
360 | 360 |
361 if (m_models.empty()) { | |
362 m_sourceSampleRate = 0; | |
363 } | |
364 | |
361 m_mutex.unlock(); | 365 m_mutex.unlock(); |
362 | 366 |
363 clearRingBuffers(); | 367 clearRingBuffers(); |
364 } | 368 } |
365 | 369 |