Commit d292396b authored by Monty Montgomery's avatar Monty Montgomery

Fix for RH BZ 1193688-- should fix the crackling in the pulse module



git-svn-id: http://svn.xiph.org/trunk/ao@19470 0101bb08-14d6-0310-b084-bc0e0c8e3800
parent 37608888
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment