mpv/audio
James Ross-Gowan 3c10ed540b 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-23 22:02:15 +11:00
..
decode audio: fix initial audio PTS 2015-01-14 22:14:46 +01:00
filter af: remove old filter compatibility hack 2015-01-15 20:13:15 +01:00
out ao_wasapi: fix try_format logic in shared mode 2015-01-23 22:02:15 +11:00
audio.c audio: add some utility functions for refcounted frames 2015-01-13 20:14:25 +01:00
audio.h audio: add missing declaration 2015-01-14 22:15:00 +01:00
audio_buffer.c Split mpvcore/ into common/, misc/, bstr/ 2013-12-17 02:39:45 +01:00
audio_buffer.h
chmap.c chmap_sel: add multichannel fallback heuristic 2014-12-29 17:56:53 +01:00
chmap.h chmap_sel: add multichannel fallback heuristic 2014-12-29 17:56:53 +01:00
chmap_sel.c chmap_sel: add multichannel fallback heuristic 2014-12-29 17:56:53 +01:00
chmap_sel.h chmap_sel: add multichannel fallback heuristic 2014-12-29 17:56:53 +01:00
fmt-conversion.c audio: fix format ID conversion 2013-12-23 21:24:41 +01:00
fmt-conversion.h
format.c ao/format: add af_fmt_is_float 2014-12-01 03:40:23 -08:00
format.h ao/format: add af_fmt_is_float 2014-12-01 03:40:23 -08:00
mixer.c mixer: don't show softvol neutral marker on OSD if not using softvol 2014-11-27 10:11:55 +01:00
mixer.h player: show "neutral" position markers for OSD bars 2014-06-08 23:52:58 +02:00