changeset 19835:807cdfafa0ce

disable multichannel mode, it never worked reliable
author faust3
date Fri, 15 Sep 2006 16:26:25 +0000
parents 264adb956f29
children 9470f7630ee4
files libao2/ao_win32.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_win32.c	Fri Sep 15 15:02:11 2006 +0000
+++ b/libao2/ao_win32.c	Fri Sep 15 16:26:25 2006 +0000
@@ -159,6 +159,11 @@
 			mp_msg(MSGT_AO, MSGL_V,"ao_win32: format %s not supported defaulting to Signed 16-bit Little-Endian\n",af_fmt2str_short(format));
 			format=AF_FORMAT_S16_LE;
 	}   
+
+	// FIXME multichannel mode is buggy
+	if(channels > 2)
+		channels = 2;
+   
 	//fill global ao_data 
 	ao_data.channels=channels;
 	ao_data.samplerate=rate;