changeset 472:6ec35c1690c0 3.0-integration

Fix very long delay on seeking during playback (caused by Pulse driver using max length as block size)
author Chris Cannam
date Wed, 05 Aug 2015 17:47:12 +0100
parents 0d725dd7f99c
children 52c0aff69478
files audio/AudioCallbackPlaySource.cpp
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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();