mpv/audio/decode
wm4 0b144eac39 audio: use --audio-channels=auto behavior, except on ALSA
This commit adds an --audio-channel=auto-safe mode, and makes it the
default. This mode behaves like "auto" with most AOs, except with
ao_alsa. The intention is to allow multichannel output by default on
sane APIs. ALSA is not sane as in it's so low level that it will e.g.
configure any layout over HDMI, even if the connected A/V receiver does
not support it. The HDMI fuckup is of course not ALSA's fault, but other
audio APIs normally isolate applications from dealing with this and
require the user to globally configure the correct output layout.

This will help with other AOs too. ao_lavc (encoding) is changed to the
new semantics as well, because it used to force stereo (perhaps because
encoding mode is supposed to produce safe files for crap devices?).
Exclusive mode output on Windows might need to be adjusted accordingly,
as it grants the same kind of low level access as ALSA (requires more
research).

In addition to the things mentioned above, the --audio-channels option
is extended to accept a set of channel layouts. This is supposed to be
the correct way to configure mpv ALSA multichannel output. You need to
put a list of channel layouts that your A/V receiver supports.
2016-08-04 20:49:20 +02:00
..
ad.h audio: move direct packet reading from decoders to common code 2016-01-19 22:24:38 +01:00
ad_lavc.c audio: use --audio-channels=auto behavior, except on ALSA 2016-08-04 20:49:20 +02:00
ad_spdif.c ad_spdif: take care of deprecated libavcodec API usage 2016-04-20 19:37:45 +02:00
dec_audio.c dec_audio: fix segment boudnary switching 2016-06-27 15:12:21 +02:00
dec_audio.h Rewrite ordered chapters and timeline stuff 2016-02-15 21:04:07 +01:00