Browse Source

pulse: increase the target length in low latency mode

This fixes audio glitches on some configuration.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
pull/61/head
Adrien Maglo 9 years ago
committed by Thomas Guillem
parent
commit
7ce308c94d
  1. 2
      modules/audio_output/pulse.c

2
modules/audio_output/pulse.c

@ -816,7 +816,7 @@ static int Start(audio_output_t *aout, audio_sample_format_t *restrict fmt)
/* Setup low latency in order to quickly react to ambisonics
* filters viewpoint changes. */
flags |= PA_STREAM_ADJUST_LATENCY;
attr.tlength = pa_usec_to_bytes(2 * AOUT_MIN_PREPARE_TIME, &ss);
attr.tlength = pa_usec_to_bytes(3 * AOUT_MIN_PREPARE_TIME, &ss);
}
if (encoding != PA_ENCODING_PCM)

Loading…
Cancel
Save