From 3fba46f8900cccb7cad5563a2b94992e3bcb8aa3 Mon Sep 17 00:00:00 2001 From: Tom Yan Date: Wed, 1 Aug 2018 23:34:05 +0800 Subject: [PATCH] pulse: set battr.minreq and battr.maxlength to -1 We really just want to set battr.tlength (as its default is 2s). It's better to left the others for pulse to determine. --- src/plugins/pulse/ao_pulse.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugins/pulse/ao_pulse.c b/src/plugins/pulse/ao_pulse.c index f3e9376..9c5c008 100644 --- a/src/plugins/pulse/ao_pulse.c +++ b/src/plugins/pulse/ao_pulse.c @@ -256,12 +256,10 @@ int ao_plugin_open(ao_device *device, ao_sample_format *format) { } /* buffering attributes */ - battr.prebuf = battr.minreq = battr.fragsize = -1; + battr.prebuf = battr.minreq = battr.fragsize = battr.maxlength = -1; battr.tlength = internal->buffer_time * format->rate / 1000000 * (format->bits / 8) * device->output_channels; - battr.minreq = battr.tlength/4; - battr.maxlength = battr.tlength+battr.minreq; internal->simple = pa_simple_new(internal->server, t, PA_STREAM_PLAYBACK, internal->sink, t2, &ss,