summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2020-03-19 00:45:30 -0700
committerJan Ekström <jeebjp@gmail.com>2020-03-19 20:39:44 +0200
commit3aad89829f832091d483589fd578f6ab5b8ba685 (patch)
treecb0d52d1b91b1dd64bef8489d69e8aae95dc0570 /video/out
parent609d0ef478340207be3ed880aa3f56c3bbce1803 (diff)
downloadmpv-3aad89829f832091d483589fd578f6ab5b8ba685.tar.bz2
mpv-3aad89829f832091d483589fd578f6ab5b8ba685.tar.xz
ao_wasapi: try mix format except for chmap
In shared mode, we previously tried to feed the full native format to IsFormatSupported in the hopes that the "closest match" returned was actually that. Turns out, IsFormatSupported will always return the mix format if we don't use the mix format's sample rate. This will also clobber our choice of channel map with the mix format channel map even if our desired channel map is supported due to surround emulation. The solution is to not bother trying to use anything other than the mix format sample rate. While we're at it, we might as well use the mix format PCM sample format (always float32) since this conversion will happen anyway and may avoid unecessary dithering to intermediate integer formats if we are already resampling or channel mixing.
Diffstat (limited to 'video/out')
0 files changed, 0 insertions, 0 deletions