# HG changeset patch # User arpi # Date 1021320711 0 # Node ID 0b3b6d03779cc9344dd18483748a78d33e81074e # Parent 10a30eebafaf23c23019c5241fce14e2ab90d262 fix for L<->R swap with 6ch playback - based on patch by Eric Lammerts diff -r 10a30eebafaf -r 0b3b6d03779c libao2/ao_oss.c --- 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; }