diff --git a/src/plugins/pulse/ao_pulse.c b/src/plugins/pulse/ao_pulse.c index ff5497f..9c0f64a 100644 --- a/src/plugins/pulse/ao_pulse.c +++ b/src/plugins/pulse/ao_pulse.c @@ -259,7 +259,7 @@ int ao_plugin_open(ao_device *device, ao_sample_format *format) { battr.prebuf = battr.minreq = battr.fragsize = -1; battr.tlength = (int)(internal->buffer_time * format->rate) / 1000000 * - ((format->bits+7)/8) + device->output_channels; + ((format->bits+7)/8) * device->output_channels; battr.minreq = battr.tlength/4; battr.maxlength = battr.tlength+battr.minreq;