changeset 474:fdce8a452b19 bqaudioio

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 c6094bca34f4
children f93820d36cb0 82d7e5cf7517
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();