changeset 6075:0b3b6d03779c

fix for L<->R swap with 6ch playback - based on patch by Eric Lammerts <eric@lammerts.org>
author arpi
date Mon, 13 May 2002 20:11:51 +0000
parents 10a30eebafaf
children eff64fb1ffea
files libao2/ao_oss.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_oss.c	Mon May 13 19:57:27 2002 +0000
+++ b/libao2/ao_oss.c	Mon May 13 20:11:51 2002 +0000
@@ -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;
 
@@ -209,6 +209,9 @@
 #endif
   }
 
+  ao_data.outburst-=ao_data.outburst % ao_data.bps; // round down
+  ao_data.bps*=rate;
+
     return 1;
 }