summaryrefslogtreecommitdiffstats
path: root/libao2
diff options
context:
space:
mode:
authorfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-15 16:26:25 +0000
committerfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-15 16:26:25 +0000
commit3624850220f21e9f51b6e185285f7ec05d14c9e7 (patch)
tree0b67c7d3abd814fc1af6952f706baa46eb2991ba /libao2
parent8fce694d5264d7b66619f2cbdcbe49f9cf808969 (diff)
downloadmpv-3624850220f21e9f51b6e185285f7ec05d14c9e7.tar.bz2
mpv-3624850220f21e9f51b6e185285f7ec05d14c9e7.tar.xz
disable multichannel mode, it never worked reliable
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19841 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2')
-rw-r--r--libao2/ao_win32.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libao2/ao_win32.c b/libao2/ao_win32.c
index 526d8f4c17..1f9a5e9663 100644
--- a/libao2/ao_win32.c
+++ b/libao2/ao_win32.c
@@ -159,6 +159,11 @@ static int init(int rate,int channels,int format,int flags)
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;