changeset 25189:9456831eb2ca

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.
author reimar
date Fri, 30 Nov 2007 22:15:01 +0000
parents 32b0428fbd5a
children ac0406c340b3
files libao2/ao_null.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;