diff options
author | wm4 <wm4@nowhere> | 2015-11-04 13:44:52 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-11-04 21:48:37 +0100 |
commit | 46f59f25c23bf9fc4c73fd56b29cc39812bb42a5 (patch) | |
tree | 59f676f6e97aaa9b994c40118923a2b5f3096b04 /misc | |
parent | 0ca8b290a4be854393d16e965a1083bb539ec90e (diff) | |
download | mpv-46f59f25c23bf9fc4c73fd56b29cc39812bb42a5.tar.bz2 mpv-46f59f25c23bf9fc4c73fd56b29cc39812bb42a5.tar.xz |
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.
Diffstat (limited to 'misc')
0 files changed, 0 insertions, 0 deletions