increased pulse read buffer in order to reduce cpu usage #247

master
karlstav 7 years ago
parent 29fb506f48
commit ce9910d1ac
  1. 4
      input/pulse.c

@ -5,7 +5,7 @@
#include <pulse/simple.h>
#include <pulse/error.h>
#include <pulse/pulseaudio.h>
#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
};

Loading…
Cancel
Save