1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-24 20:31:37 +00:00
mpv/audio
wm4 46f59f25c2 ao_alsa: map mp_chmaps back to ALSA in a different way
Instead of constructing an ALSA channel map from mpv ones from scratch,
try to find the original ALSA channel map again. Th result is that we
need to convert channel maps only in one direction. If we need to map
a mp_chmap to ALSA, we fetch the device's channel map list, convert
each entry to mp_chmap, and find the first one which fits.

This seems helpful for the following commit. For now, this only gets rid
of mapping back the trivial MONO mapping, which alone would still be
acceptable, but with other channel layout mogrifications it gets messy
fast. While we need to do something awkward to keep our channel map
reordering for VAR chmaps (which basically gives nicer output and
possibly slightly better performance), this is still the better
solution.
2015-11-04 21:48:37 +01:00
..
decode audio: make spdif re-probe from normal decoding work 2015-10-06 20:21:29 +02:00
filter Revert "af_lavrresample: don't drop sl/sr channels for 7.1 on ALSA" 2015-11-04 21:48:37 +01:00
out ao_alsa: map mp_chmaps back to ALSA in a different way 2015-11-04 21:48:37 +01:00
audio_buffer.c player: add audio drop/duplicate mode 2015-10-27 20:56:46 +01:00
audio_buffer.h player: add audio drop/duplicate mode 2015-10-27 20:56:46 +01:00
audio.c audio: use AVFrames with more than 8 channels correctly 2015-10-26 15:54:00 +01:00
audio.h audio/filter: remove some useless filters 2015-09-03 23:55:36 +02:00
chmap_sel.c audio: always log channel maps before determining final map 2015-10-26 15:52:08 +01:00
chmap_sel.h audio: always log channel maps before determining final map 2015-10-26 15:52:08 +01:00
chmap.c af_lavrresample: don't drop sl/sr channels for 7.1 on ALSA 2015-11-03 00:28:00 +01:00
chmap.h audio: bump maximum number of channels to 16 2015-10-26 15:54:19 +01:00
fmt-conversion.c Update license headers 2015-04-13 12:10:01 +02:00
fmt-conversion.h Update license headers 2015-04-13 12:10:01 +02:00
format.c audio/format: revise af_format_conversion_score 2015-09-10 23:58:09 -07:00
format.h ao_lavc: use new sample format determination code 2015-09-10 23:38:42 +02:00
mixer.c audio: fix restoring volume 2015-07-27 15:07:51 +02:00
mixer.h audio: change range of volume option/property 2015-05-22 18:35:03 +02:00