[Mplayer-cvslog] CVS: main/libao2 ao_oss.c,1.23,1.24

Arpi of Ize arpi at mplayerhq.hu
Mon May 13 22:11:54 CEST 2002


Update of /cvsroot/mplayer/main/libao2
In directory mail:/var/tmp.root/cvs-serv20803

Modified Files:
	ao_oss.c 
Log Message:
fix for L<->R swap with 6ch playback - based on patch by Eric Lammerts <eric at lammerts.org>

Index: ao_oss.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_oss.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- ao_oss.c	29 Apr 2002 20:42:15 -0000	1.23
+++ ao_oss.c	13 May 2002 20:11:51 -0000	1.24
@@ -121,7 +121,7 @@
   }  
 #endif
   
-  ao_data.bps=channels*rate;
+  ao_data.bps=channels;
   if(format != AFMT_U8 && format != AFMT_S8)
     ao_data.bps*=2;
 
@@ -208,6 +208,9 @@
     }
 #endif
   }
+
+  ao_data.outburst-=ao_data.outburst % ao_data.bps; // round down
+  ao_data.bps*=rate;
 
     return 1;
 }




More information about the MPlayer-cvslog mailing list