1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-20 06:46:55 +00:00
mpv/audio
Stefano Pigozzi 891a9727c6 chmap_sel: add multichannel fallback heuristic
Instead of just failing during channel map selection, try to select a close
layout that makes most sense and upmix/downmix to that instead of failing AO
initialization. The heuristic is rather simple, and uses the following steps:

1) If mono is required always prefer stereo to a multichannel upmix.
2) Search for an upmix that is an exact superset of the required channel map.
3) Search for a downmix that is the exact subset of the required channel map.
4) Search for either an upmix or downmix that is the closest (minimum difference
   of channels) to the required channel map.
2015-01-25 17:00:15 +09:00
..
decode audio: make decoders output refcounted frames 2014-11-10 22:02:05 +01:00
filter af_volume: dump applied replaygain in verbose mode 2015-01-25 17:00:09 +09:00
out ao_coreaudio: remove useless guard 2015-01-25 17:00:15 +09:00
audio_buffer.c Split mpvcore/ into common/, misc/, bstr/ 2013-12-17 02:39:45 +01:00
audio_buffer.h audio: add mp_audio_buffer 2013-11-12 23:28:21 +01:00
audio.c audio: make mp_audio_config_to_str return a stack-allocated string 2014-11-25 11:11:31 +01:00
audio.h audio: make mp_audio_config_to_str return a stack-allocated string 2014-11-25 11:11:31 +01:00
chmap_sel.c chmap_sel: add multichannel fallback heuristic 2015-01-25 17:00:15 +09:00
chmap_sel.h chmap_sel: add multichannel fallback heuristic 2015-01-25 17:00:15 +09:00
chmap.c chmap_sel: add multichannel fallback heuristic 2015-01-25 17:00:15 +09:00
chmap.h chmap_sel: add multichannel fallback heuristic 2015-01-25 17:00:15 +09:00
fmt-conversion.c audio: fix format ID conversion 2013-12-23 21:24:41 +01:00
fmt-conversion.h ad_lavc: use fmt-conversion to map sample formats 2013-04-13 04:21:27 +02:00
format.c ao/format: add af_fmt_is_float 2015-01-25 17:00:12 +09:00
format.h ao/format: add af_fmt_is_float 2015-01-25 17:00:12 +09:00
mixer.c mixer: don't show softvol neutral marker on OSD if not using softvol 2014-12-01 21:05:45 +01:00
mixer.h player: show "neutral" position markers for OSD bars 2014-06-08 23:52:58 +02:00