From 12c690b552ea66f59a98f90e1d0b75c0e155bf98 Mon Sep 17 00:00:00 2001
From: Alexandre Savard <alexandre.savard@savoirfairelinux.net>
Date: Wed, 21 Oct 2009 14:18:20 -0400
Subject: [PATCH] [#2048] Reduce prebuffering in pulseaudio (which affect
 incomming calls' plbck)

---
 sflphone-common/src/audio/pulseaudio/audiostream.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sflphone-common/src/audio/pulseaudio/audiostream.cpp b/sflphone-common/src/audio/pulseaudio/audiostream.cpp
index c99ffd286e..4591770a1d 100644
--- a/sflphone-common/src/audio/pulseaudio/audiostream.cpp
+++ b/sflphone-common/src/audio/pulseaudio/audiostream.cpp
@@ -186,7 +186,7 @@ AudioStream::createStream (pa_context* c)
     if (_streamType == PLAYBACK_STREAM) {
         attributes->maxlength = 32000;
         attributes->tlength = 8192;
-        attributes->prebuf = 4096;
+        attributes->prebuf = 2048;
         attributes->minreq = 512;
         attributes->fragsize = (uint32_t) -1;
         pa_stream_connect_playback( s , NULL , attributes, PA_STREAM_INTERPOLATE_TIMING, &_volume, NULL);
@@ -198,7 +198,7 @@ AudioStream::createStream (pa_context* c)
 
         attributes->maxlength = 16000;
         attributes->tlength = 8192;
-        attributes->prebuf = 4096;
+        attributes->prebuf = 2048;
         attributes->minreq = 512;
         attributes->fragsize = (uint32_t) -1;
 
-- 
GitLab