From ce9910d1ac372e7e2f5903ebc96c2181af8a69e5 Mon Sep 17 00:00:00 2001 From: karlstav Date: Sat, 15 Dec 2018 22:35:34 +0100 Subject: [PATCH] increased pulse read buffer in order to reduce cpu usage #247 --- input/pulse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/input/pulse.c b/input/pulse.c index 66b6cb2..c8cb7d2 100644 --- a/input/pulse.c +++ b/input/pulse.c @@ -5,7 +5,7 @@ #include #include #include -#define BUFSIZE 1024 +#define BUFSIZE 4096 pa_mainloop *m_pulseaudio_mainloop; @@ -123,7 +123,7 @@ void* input_pulse(void* data) .channels = 2 }; static const pa_buffer_attr pb = { - .maxlength = BUFSIZE * 2, + .maxlength = (uint32_t) -1, //BUFSIZE * 2, .fragsize = BUFSIZE };