summaryrefslogtreecommitdiffstats
path: root/libao2/ao_pcm.c
diff options
context:
space:
mode:
authortack <tack@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-10 00:45:19 +0000
committertack <tack@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-10 00:45:19 +0000
commit3c2afd67861769e82034b2ca276d2670964fc09c (patch)
tree9fa61272171332b4352fb34bde7ced4999244444 /libao2/ao_pcm.c
parent1d30062395914bbc9eef1299c70018df9f333628 (diff)
downloadmpv-3c2afd67861769e82034b2ca276d2670964fc09c.tar.bz2
mpv-3c2afd67861769e82034b2ca276d2670964fc09c.tar.xz
Add support for 8 channel audio.
Where 8 channel support is non-trivial (e.g. ao_dsound), at least ensure we fail gracefully. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29868 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2/ao_pcm.c')
-rw-r--r--libao2/ao_pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libao2/ao_pcm.c b/libao2/ao_pcm.c
index 9dc97e7554..9167521f12 100644
--- a/libao2/ao_pcm.c
+++ b/libao2/ao_pcm.c
@@ -244,7 +244,7 @@ static int play(void* data,int len,int flags){
}
#endif
- if (ao_data.channels == 6 || ao_data.channels == 5) {
+ if (ao_data.channels == 5 || ao_data.channels == 6 || ao_data.channels == 8) {
int frame_size = le2me_16(wavhdr.bits) / 8;
len -= len % (frame_size * ao_data.channels);
reorder_channel_nch(data, AF_CHANNEL_LAYOUT_MPLAYER_DEFAULT,