1
mirror of https://github.com/mpv-player/mpv synced 2024-10-26 07:22:17 +02:00
mpv/options
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
..
m_config.c options: add a deprecation warning printing mechanism 2016-06-29 18:09:30 +02:00
m_config.h options: handle terminal/logging settings eagerly 2015-11-04 21:49:54 +01:00
m_option.c audio: use --audio-channels=auto behavior, except on ALSA 2016-08-04 20:49:20 +02:00
m_option.h audio: use --audio-channels=auto behavior, except on ALSA 2016-08-04 20:49:20 +02:00
m_property.c command: fix cycling certain properties 2016-04-15 22:10:19 +02:00
m_property.h vo_opengl: refactor performance data properties 2016-06-08 22:11:38 +02:00
options.c audio: use --audio-channels=auto behavior, except on ALSA 2016-08-04 20:49:20 +02:00
options.h audio: use --audio-channels=auto behavior, except on ALSA 2016-08-04 20:49:20 +02:00
parse_commandline.c options: remove unneeded hack from command line parser 2015-04-23 21:08:19 +02:00
parse_commandline.h Update license headers 2015-04-13 12:10:01 +02:00
parse_configfile.c options: clarify quoting for option values starting with % 2015-04-17 16:06:43 +02:00
parse_configfile.h Update license headers 2015-04-13 12:10:01 +02:00
path.c mpv_talloc.h: rename from talloc.h 2016-01-11 21:05:55 +01:00
path.h player: make watch later/resume work when "playing" directories 2016-01-06 22:40:55 +01:00