Mercurial > hg > svapp
comparison audioio/AudioCallbackPlaySource.cpp @ 34:f6b15e0b6fde
* fix long-standing failure to silence layers that have been deleted
* fix deadlock in WaveFileModel::cacheFilled
* fixes and speedups to new CodedAudioFileReader
* trap signals in main, clean up temporary directory
author | Chris Cannam |
---|---|
date | Fri, 28 Apr 2006 12:19:09 +0000 |
parents | 3e0794460c4e |
children | 54287e5e7451 |
comparison
equal
deleted
inserted
replaced
33:3e0794460c4e | 34:f6b15e0b6fde |
---|---|
94 } | 94 } |
95 | 95 |
96 void | 96 void |
97 AudioCallbackPlaySource::addModel(Model *model) | 97 AudioCallbackPlaySource::addModel(Model *model) |
98 { | 98 { |
99 if (m_models.find(model) != m_models.end()) return; | |
100 | |
99 bool canPlay = m_audioGenerator->addModel(model); | 101 bool canPlay = m_audioGenerator->addModel(model); |
100 | 102 |
101 m_mutex.lock(); | 103 m_mutex.lock(); |
102 | 104 |
103 m_models.insert(model); | 105 m_models.insert(model); |