Mercurial > mplayer.hg
diff libao2/ao_alsa.c @ 29826:4eae69f3f4f4
Add support for 8 channel audio.
Where 8 channel support is non-trivial (e.g. ao_dsound), at least ensure we
fail gracefully.
author | tack |
---|---|
date | Tue, 10 Nov 2009 00:45:19 +0000 |
parents | 54f54530a4d3 |
children | 1772a5171ac7 |
line wrap: on
line diff
--- a/libao2/ao_alsa.c Tue Nov 10 00:43:14 2009 +0000 +++ b/libao2/ao_alsa.c Tue Nov 10 00:45:19 2009 +0000 @@ -457,6 +457,13 @@ device.str = "surround51"; mp_msg(MSGT_AO,MSGL_V,"alsa-init: device set to surround51\n"); break; + case 8: + if (alsa_format == SND_PCM_FORMAT_FLOAT_LE) + device.str = "plug:surround71"; + else + device.str = "surround71"; + mp_msg(MSGT_AO,MSGL_V,"alsa-init: device set to surround71\n"); + break; default: device.str = "default"; mp_msg(MSGT_AO,MSGL_ERR,MSGTR_AO_ALSA_ChannelsNotSupported,channels);