# HG changeset patch # User reimar # Date 1196460901 0 # Node ID 9456831eb2cacad216dab10d71b0439eaa5d090a # Parent 32b0428fbd5a3bf64c0e0d6b788f92ecb00cc29f Make outburst and buffersize depend on channel count. This should reduce the number of case where to much audio is buffered ahead thus breaking interleaving. diff -r 32b0428fbd5a -r 9456831eb2ca libao2/ao_null.c --- a/libao2/ao_null.c Fri Nov 30 21:29:45 2007 +0000 +++ b/libao2/ao_null.c Fri Nov 30 22:15:01 2007 +0000 @@ -50,8 +50,8 @@ // return: 1=success 0=fail static int init(int rate,int channels,int format,int flags){ - ao_data.buffersize= 65536; - ao_data.outburst=1024; + ao_data.buffersize= 16384*channels; + ao_data.outburst=512*channels; ao_data.channels=channels; ao_data.samplerate=rate; ao_data.format=format;