[MPlayer-cvslog] r25217 - trunk/libao2/ao_null.c

reimar subversion at mplayerhq.hu
Fri Nov 30 23:15:01 CET 2007


Author: reimar
Date: Fri Nov 30 23:15:01 2007
New Revision: 25217

Log:
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.


Modified:
   trunk/libao2/ao_null.c

Modified: trunk/libao2/ao_null.c
==============================================================================
--- trunk/libao2/ao_null.c	(original)
+++ trunk/libao2/ao_null.c	Fri Nov 30 23:15:01 2007
@@ -50,8 +50,8 @@ static int control(int cmd,void *arg){
 // 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;



More information about the MPlayer-cvslog mailing list