From 2228d4737367fb0303bec263bc06ca90c9ff8757 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 24 Nov 2014 19:40:24 +0100 Subject: ao_alsa: try to use the channel map reported by ALSA If ALSA reports a channel map, and it looks like it makes sense (i.e. could be converted to mpv channel map, and the channel count matches), then use that instead of the channel map we are assuming. This is based on code written by lachs0r (alsa_ng branch). --- audio/chmap.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'audio/chmap.h') diff --git a/audio/chmap.h b/audio/chmap.h index 22cf6fb73b..c7851a8657 100644 --- a/audio/chmap.h +++ b/audio/chmap.h @@ -61,7 +61,8 @@ enum mp_speaker_id { MP_SPEAKER_ID_UNKNOWN0 = 64, MP_SPEAKER_ID_UNKNOWN_LAST = MP_SPEAKER_ID_UNKNOWN0 + MP_NUM_CHANNELS - 1, - // Including the unassigned IDs in between. This is not a valid ID anymore. + // Including the unassigned IDs in between. This is not a valid ID anymore, + // but is still within uint8_t. MP_SPEAKER_ID_COUNT, }; -- cgit v1.2.3