Mercurial > hg > svapp
comparison audioio/AudioCallbackPlaySource.cpp @ 445:c48bc6ddfe17 tonioni
Remove some debug; set some gain values
author | Chris Cannam |
---|---|
date | Tue, 31 Mar 2015 13:06:29 +0100 |
parents | 88ae0e53a5da |
children | 3e2a2ca24d90 |
comparison
equal
deleted
inserted
replaced
444:ba789baf642b | 445:c48bc6ddfe17 |
---|---|
360 void | 360 void |
361 AudioCallbackPlaySource::clearRingBuffers(bool haveLock, int count) | 361 AudioCallbackPlaySource::clearRingBuffers(bool haveLock, int count) |
362 { | 362 { |
363 if (!haveLock) m_mutex.lock(); | 363 if (!haveLock) m_mutex.lock(); |
364 | 364 |
365 #ifdef DEBUG_AUDIO_PLAY_SOURCE | |
365 cerr << "clearRingBuffers" << endl; | 366 cerr << "clearRingBuffers" << endl; |
367 #endif | |
366 | 368 |
367 rebuildRangeLists(); | 369 rebuildRangeLists(); |
368 | 370 |
369 if (count == 0) { | 371 if (count == 0) { |
370 if (m_writeBuffers) count = int(m_writeBuffers->size()); | 372 if (m_writeBuffers) count = int(m_writeBuffers->size()); |
371 } | 373 } |
372 | 374 |
375 #ifdef DEBUG_AUDIO_PLAY_SOURCE | |
373 cerr << "current playing frame = " << getCurrentPlayingFrame() << endl; | 376 cerr << "current playing frame = " << getCurrentPlayingFrame() << endl; |
374 | 377 |
375 cerr << "write buffer fill (before) = " << m_writeBufferFill << endl; | 378 cerr << "write buffer fill (before) = " << m_writeBufferFill << endl; |
376 | 379 #endif |
380 | |
377 m_writeBufferFill = getCurrentBufferedFrame(); | 381 m_writeBufferFill = getCurrentBufferedFrame(); |
378 | 382 |
383 #ifdef DEBUG_AUDIO_PLAY_SOURCE | |
379 cerr << "current buffered frame = " << m_writeBufferFill << endl; | 384 cerr << "current buffered frame = " << m_writeBufferFill << endl; |
385 #endif | |
380 | 386 |
381 if (m_readBuffers != m_writeBuffers) { | 387 if (m_readBuffers != m_writeBuffers) { |
382 delete m_writeBuffers; | 388 delete m_writeBuffers; |
383 } | 389 } |
384 | 390 |