From 69fcbf9a1d37ba29defe8f68dfeb39c092c5be55 Mon Sep 17 00:00:00 2001
From: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
Date: Mon, 27 Oct 2008 11:08:18 -0400
Subject: [PATCH] increase minreq param for playback, set fragment size to
 default for capture

---
 src/audio/audiostream.cpp | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/src/audio/audiostream.cpp b/src/audio/audiostream.cpp
index 1f7df13ba8..6facf1056c 100644
--- a/src/audio/audiostream.cpp
+++ b/src/audio/audiostream.cpp
@@ -89,21 +89,18 @@ AudioStream::createStream( pa_context* c )
     attributes->maxlength = 66500;
     attributes->tlength = 44100;
     attributes->prebuf = 10000;
-    attributes->minreq = 882;
+    attributes->minreq = 940;
     pa_stream_connect_playback( s , NULL , attributes, 
 				PA_STREAM_INTERPOLATE_TIMING,
 				&_volume, NULL);
 				//pa_cvolume_set(&cv, sample_spec.channels , PA_VOLUME_NORM) , NULL );
   }
   else if( _streamType == CAPTURE_STREAM ){
-/*    
-    attributes->maxlength = 66500;//-1;
-    attributes->tlength = -1; //44100;
-    attributes->minreq = 2000;
-    attributes->prebuf = 10000;
-    attributes->fragsize = -1;   
-*/ 
-    pa_stream_connect_record( s , NULL , /*attributes*/ NULL , PA_STREAM_START_CORKED );
+    
+    attributes->maxlength = 66500;
+    attributes->fragsize = (uint32_t)-1;   
+ 
+    pa_stream_connect_record( s , NULL , attributes , PA_STREAM_START_CORKED );
   }
   else if( _streamType == UPLOAD_STREAM ){
     pa_stream_connect_upload( s , 1024  );
-- 
GitLab