Mercurial > hg > sonic-visualiser
comparison audioio/AudioCallbackPlaySource.cpp @ 127:fbd09fcda469
* doc updates
author | Chris Cannam |
---|---|
date | Fri, 30 Mar 2007 17:16:48 +0000 |
parents | b4110b17bca8 |
children | 006c90387f40 |
comparison
equal
deleted
inserted
replaced
126:8d31c8e9c820 | 127:fbd09fcda469 |
---|---|
193 m_mutex.unlock(); | 193 m_mutex.unlock(); |
194 | 194 |
195 m_audioGenerator->setTargetChannelCount(getTargetChannelCount()); | 195 m_audioGenerator->setTargetChannelCount(getTargetChannelCount()); |
196 | 196 |
197 if (!m_fillThread) { | 197 if (!m_fillThread) { |
198 m_fillThread = new AudioCallbackPlaySourceFillThread(*this); | 198 m_fillThread = new FillThread(*this); |
199 m_fillThread->start(); | 199 m_fillThread->start(); |
200 } | 200 } |
201 | 201 |
202 #ifdef DEBUG_AUDIO_PLAY_SOURCE | 202 #ifdef DEBUG_AUDIO_PLAY_SOURCE |
203 std::cout << "AudioCallbackPlaySource::addModel: now have " << m_models.size() << " model(s) -- emitting modelReplaced" << std::endl; | 203 std::cout << "AudioCallbackPlaySource::addModel: now have " << m_models.size() << " model(s) -- emitting modelReplaced" << std::endl; |
1380 m_readBufferFill = m_writeBufferFill; | 1380 m_readBufferFill = m_writeBufferFill; |
1381 // std::cout << "unified" << std::endl; | 1381 // std::cout << "unified" << std::endl; |
1382 } | 1382 } |
1383 | 1383 |
1384 void | 1384 void |
1385 AudioCallbackPlaySource::AudioCallbackPlaySourceFillThread::run() | 1385 AudioCallbackPlaySource::FillThread::run() |
1386 { | 1386 { |
1387 AudioCallbackPlaySource &s(m_source); | 1387 AudioCallbackPlaySource &s(m_source); |
1388 | 1388 |
1389 #ifdef DEBUG_AUDIO_PLAY_SOURCE | 1389 #ifdef DEBUG_AUDIO_PLAY_SOURCE |
1390 std::cout << "AudioCallbackPlaySourceFillThread starting" << std::endl; | 1390 std::cout << "AudioCallbackPlaySourceFillThread starting" << std::endl; |