Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
29825:9cf56cc1bbb2 | 29826:4eae69f3f4f4 |
---|---|
455 device.str = "plug:surround51"; | 455 device.str = "plug:surround51"; |
456 else | 456 else |
457 device.str = "surround51"; | 457 device.str = "surround51"; |
458 mp_msg(MSGT_AO,MSGL_V,"alsa-init: device set to surround51\n"); | 458 mp_msg(MSGT_AO,MSGL_V,"alsa-init: device set to surround51\n"); |
459 break; | 459 break; |
460 case 8: | |
461 if (alsa_format == SND_PCM_FORMAT_FLOAT_LE) | |
462 device.str = "plug:surround71"; | |
463 else | |
464 device.str = "surround71"; | |
465 mp_msg(MSGT_AO,MSGL_V,"alsa-init: device set to surround71\n"); | |
466 break; | |
460 default: | 467 default: |
461 device.str = "default"; | 468 device.str = "default"; |
462 mp_msg(MSGT_AO,MSGL_ERR,MSGTR_AO_ALSA_ChannelsNotSupported,channels); | 469 mp_msg(MSGT_AO,MSGL_ERR,MSGTR_AO_ALSA_ChannelsNotSupported,channels); |
463 } | 470 } |
464 device.len = strlen(device.str); | 471 device.len = strlen(device.str); |