Skip to content

Commit 3fba46f

Browse files
committed
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.
1 parent f4c40b8 commit 3fba46f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/plugins/pulse/ao_pulse.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,12 +256,10 @@ int ao_plugin_open(ao_device *device, ao_sample_format *format) {
256256
}
257257

258258
/* buffering attributes */
259-
battr.prebuf = battr.minreq = battr.fragsize = -1;
259+
battr.prebuf = battr.minreq = battr.fragsize = battr.maxlength = -1;
260260

261261
battr.tlength = internal->buffer_time * format->rate / 1000000 *
262262
(format->bits / 8) * device->output_channels;
263-
battr.minreq = battr.tlength/4;
264-
battr.maxlength = battr.tlength+battr.minreq;
265263

266264
internal->simple = pa_simple_new(internal->server, t, PA_STREAM_PLAYBACK,
267265
internal->sink, t2, &ss,

0 commit comments

Comments
 (0)