Mercurial > hg > svapp
diff audioio/AudioCallbackPlaySource.cpp @ 397:f747be6743ab
Debug bits
author | Chris Cannam |
---|---|
date | Wed, 13 Aug 2014 16:44:50 +0100 |
parents | 1e4fa2007e61 |
children | 7373a8c262ca f7dddea0dbe0 |
line wrap: on
line diff
--- a/audioio/AudioCallbackPlaySource.cpp Wed Aug 13 16:44:44 2014 +0100 +++ b/audioio/AudioCallbackPlaySource.cpp Wed Aug 13 16:44:50 2014 +0100 @@ -361,14 +361,22 @@ { if (!haveLock) m_mutex.lock(); + cerr << "clearRingBuffers" << endl; + rebuildRangeLists(); if (count == 0) { if (m_writeBuffers) count = m_writeBuffers->size(); } + cerr << "current playing frame = " << getCurrentPlayingFrame() << endl; + + cerr << "write buffer fill (before) = " << m_writeBufferFill << endl; + m_writeBufferFill = getCurrentBufferedFrame(); + cerr << "current buffered frame = " << m_writeBufferFill << endl; + if (m_readBuffers != m_writeBuffers) { delete m_writeBuffers; }