From a6199c83884a80fdb435c41485780110d8784716 Mon Sep 17 00:00:00 2001 From: arpi Date: Mon, 13 May 2002 20:11:51 +0000 Subject: fix for L<->R swap with 6ch playback - based on patch by Eric Lammerts git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6076 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libao2/ao_oss.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libao2/ao_oss.c') diff --git a/libao2/ao_oss.c b/libao2/ao_oss.c index ca8cfe108e..f818beff6d 100644 --- a/libao2/ao_oss.c +++ b/libao2/ao_oss.c @@ -121,7 +121,7 @@ static int init(int rate,int channels,int format,int flags){ } #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 @@ ac3_retry: #endif } + ao_data.outburst-=ao_data.outburst % ao_data.bps; // round down + ao_data.bps*=rate; + return 1; } -- cgit v1.2.3