# HG changeset patch # User Chris Cannam # Date 1438793232 -3600 # Node ID fdce8a452b19b639c3408b741bfe9a035e345cca # Parent c6094bca34f427c5c7280859cd6c1bcad77637d8 Fix very long delay on seeking during playback (caused by Pulse driver using max length as block size) diff -r c6094bca34f4 -r fdce8a452b19 audio/AudioCallbackPlaySource.cpp --- a/audio/AudioCallbackPlaySource.cpp Wed Aug 05 09:42:25 2015 +0100 +++ b/audio/AudioCallbackPlaySource.cpp Wed Aug 05 17:47:12 2015 +0100 @@ -594,10 +594,12 @@ m_blockSize = size; } if (size * 4 > m_ringBufferSize) { - SVDEBUG << "AudioCallbackPlaySource::setTarget: Buffer size " - << size << " > a quarter of ring buffer size " - << m_ringBufferSize << ", calling for more ring buffer" - << endl; +#ifdef DEBUG_AUDIO_PLAY_SOURCE + cerr << "AudioCallbackPlaySource::setTarget: Buffer size " + << size << " > a quarter of ring buffer size " + << m_ringBufferSize << ", calling for more ring buffer" + << endl; +#endif m_ringBufferSize = size * 4; if (m_writeBuffers && !m_writeBuffers->empty()) { clearRingBuffers();