Mercurial > hg > svapp
diff 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 |
line wrap: on
line diff
--- a/audioio/AudioCallbackPlaySource.cpp Tue Mar 31 11:04:44 2015 +0100 +++ b/audioio/AudioCallbackPlaySource.cpp Tue Mar 31 13:06:29 2015 +0100 @@ -362,7 +362,9 @@ { if (!haveLock) m_mutex.lock(); +#ifdef DEBUG_AUDIO_PLAY_SOURCE cerr << "clearRingBuffers" << endl; +#endif rebuildRangeLists(); @@ -370,13 +372,17 @@ if (m_writeBuffers) count = int(m_writeBuffers->size()); } +#ifdef DEBUG_AUDIO_PLAY_SOURCE cerr << "current playing frame = " << getCurrentPlayingFrame() << endl; cerr << "write buffer fill (before) = " << m_writeBufferFill << endl; - +#endif + m_writeBufferFill = getCurrentBufferedFrame(); +#ifdef DEBUG_AUDIO_PLAY_SOURCE cerr << "current buffered frame = " << m_writeBufferFill << endl; +#endif if (m_readBuffers != m_writeBuffers) { delete m_writeBuffers;