increased maxlength pulseaudio buffer attribute

apperrently having this as the same as buffer size caused latency
master
karlstav 10 years ago
parent 6ed533751a
commit cdff7c64fe
  1. 1
      .deps/cava.Po
  2. 3
      Makefile.am
  3. 1
      example_files/config
  4. 4
      input/pulse.c

1
.deps/cava.Po vendored

@ -1 +0,0 @@
# dummy

@ -1,8 +1,5 @@
AUTOMAKE_OPTIONS = foreign
PACKAGE ?= cava
VERSION ?= $(shell git describe --always --tags --dirty)
if !SYSTEM_LIBINIPARSER
SUBDIRS = iniparser
endif

@ -32,6 +32,7 @@
[input]
# method of capturing audio, supported input methods are: 'pulse', 'alsa' or 'fifo'.
# Defaults to 'alsa'
#
# for pulseaudio 'source' wil be the source. Default: 'alsa_output.0.analog-stereo.monitor'
# all pulseaudio sinks(outputs) have 'monitor' sources(inputs) associated with them

@ -22,8 +22,8 @@ void* input_pulse(void* data)
.channels = 2
};
static const pa_buffer_attr pb = {
.maxlength = 1024,
.fragsize = 1024
.maxlength = BUFSIZE * 2,
.fragsize = BUFSIZE
};
pa_simple *s = NULL;

Loading…
Cancel
Save