mpv/audio
James Ross-Gowan 6f9eb960c7 ao_wasapi: fix try_format logic in shared mode
The MSDN documentation for IsFormatSupported says a return code of
AUDCLNT_E_UNSUPPORTED_FORMAT means the function "succeeded but the
specified format is not supported in exclusive mode." This seems to
imply that the format is supported in shared mode, and that's what the
old code assumed, however try_format would incorrectly return success
with some drivers.

The remarks section of the documentation contradicts that assumption. It
says that in shared mode, if the audio engine does not support the
caller-specified format or any similar format, ppClosestMatch is set to
NULL and the function returns AUDCLNT_E_UNSUPPORTED_FORMAT. This is the
same as in exclusive mode, so treat AUDCLNT_E_UNSUPPORTED_FORMAT the
same regardless of opt_exclusive. In shared mode, the format selection
code will fall back to the mix format, which should always be supported.
2015-01-25 17:00:21 +09:00
..
decode player: print used number of threads in verbose mode 2015-01-25 17:00:18 +09:00
filter af_volume: dump applied replaygain in verbose mode 2015-01-25 17:00:09 +09:00
out ao_wasapi: fix try_format logic in shared mode 2015-01-25 17:00:21 +09: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
audio_buffer.c
audio_buffer.h
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
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
fmt-conversion.c
fmt-conversion.h
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