0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00
mpv/audio/out
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
..
ao_alsa.c audio: use --audio-channels=auto behavior, except on ALSA 2016-08-04 20:49:20 +02:00
ao_coreaudio_chmap.c ao_coreaudio: fix 7.1(rear) channel mapping 2016-02-04 12:29:32 +01:00
ao_coreaudio_chmap.h ao_coreaudio_chmap: change license to LGPL 2016-01-19 21:21:49 +01:00
ao_coreaudio_exclusive.c ao_coreaudio_exclusive: add missing newline to log message 2016-04-01 12:24:39 +02:00
ao_coreaudio_properties.c ao_coreaudio: use correct free function on errors 2016-07-13 16:34:00 +02:00
ao_coreaudio_properties.h ao_coreaudio: report hardware latency to ao_read_data 2014-07-03 20:05:15 +02:00
ao_coreaudio_utils.c ao_creoaudio: print OSStatus as decimal signed integer too 2016-07-13 17:07:06 +02:00
ao_coreaudio_utils.h ao_coreaudio: remove unused function 2016-04-15 14:14:42 +02:00
ao_coreaudio.c ao_coreaudio: remove detected_device 2016-04-26 18:35:37 +02:00
ao_jack.c ao_jack: remove "alsa" std-channel-layout choice 2015-11-07 15:20:34 +01:00
ao_lavc.c audio: use --audio-channels=auto behavior, except on ALSA 2016-08-04 20:49:20 +02:00
ao_null.c mpv_talloc.h: rename from talloc.h 2016-01-11 21:05:55 +01:00
ao_openal.c ao_openal: wipe out global context on init error 2016-01-18 20:46:22 -08:00
ao_opensles.c ao_opensles: remove 32bit audio 2016-05-22 14:31:37 +02:00
ao_oss.c ao_oss: do not add an entry to audio-device-list if device file missing 2016-06-29 17:40:04 +02:00
ao_pcm.c mpv_talloc.h: rename from talloc.h 2016-01-11 21:05:55 +01:00
ao_pulse.c ao_pulse: fix some volume control rounding issues 2016-07-14 18:11:14 +02:00
ao_rsound.c mpv_talloc.h: rename from talloc.h 2016-01-11 21:05:55 +01:00
ao_sdl.c Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
ao_sndio.c ao_sndio: fix comment 2015-06-26 23:03:37 +02:00
ao_wasapi_changenotify.c Fix misspellings 2016-06-26 13:47:21 +02:00
ao_wasapi_utils.c ao_wasapi: use new af_select_best_samplerate function 2016-03-17 02:31:05 -07:00
ao_wasapi.c Fix misspellings 2016-06-26 13:47:21 +02:00
ao_wasapi.h ao_wasapi: replace laggy COM messaging with mp_dispatch_queue 2016-02-26 15:43:51 -08:00
ao.c audio: use --audio-channels=auto behavior, except on ALSA 2016-08-04 20:49:20 +02:00
ao.h audio: use --audio-channels=auto behavior, except on ALSA 2016-08-04 20:49:20 +02:00
internal.h audio: use --audio-channels=auto behavior, except on ALSA 2016-08-04 20:49:20 +02:00
pull.c Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
push.c osdep/io: introduce mp_flush_wakeup_pipe() 2016-07-30 00:02:39 +02:00