From: c vw <dl1ycf@darc.de>
Date: Mon, 1 Nov 2021 12:48:38 +0000 (+0100)
Subject: Use default attributes for output buffer size
X-Git-Url: https://git.rkrishnan.org/components/module-simplejson.encoder.html?a=commitdiff_plain;h=61c46cef582e6166478e56de833106141e6fa854;p=pihpsdr.git

Use default attributes for output buffer size
---

diff --git a/pulseaudio.c b/pulseaudio.c
index ebf0c42..81dfc7e 100644
--- a/pulseaudio.c
+++ b/pulseaudio.c
@@ -134,13 +134,6 @@ int audio_open_output(RECEIVER *rx) {
   pa_sample_spec sample_spec;
   int err;
 
-  pa_buffer_attr attr;
-  attr.maxlength = (uint32_t) 4800;
-  attr.tlength   = (uint32_t) 3800;
-  attr.prebuf    = (uint32_t) 3072;  // about 64 msec "pre-filling"
-  attr.minreq    = (uint32_t) -1;
-  attr.fragsize  = (uint32_t) -1;
-
   if(rx->audio_name==NULL) {
     result=-1;
   } else {
@@ -160,7 +153,7 @@ int audio_open_output(RECEIVER *rx) {
                     stream_id,          // Description of our stream.
                     &sample_spec,       // Our sample format.
                     NULL,               // Use default channel map
-                    &attr,              // use our "prebuf" value
+                    NULL,               // Use default attributes
                     &err                // error code if returns NULL
                     );