summaryrefslogtreecommitdiffstats
path: root/audio/out/ao_coreaudio_utils.c
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2014-11-30 06:10:16 -0800
committerKevin Mitchell <kevmitch@gmail.com>2014-12-01 03:40:24 -0800
commit146561cc9184fc8a17bd8cc857a8941fe2928132 (patch)
tree5bae20af7e1522dcb7a4734d5240c46f7eb573b3 /audio/out/ao_coreaudio_utils.c
parent524cdfc3f145afdd17f6cf7c204826094f756406 (diff)
downloadmpv-146561cc9184fc8a17bd8cc857a8941fe2928132.tar.bz2
mpv-146561cc9184fc8a17bd8cc857a8941fe2928132.tar.xz
ao/wasapi: fix set_ao_format
Before it used whatever was in ao->format and changed the bits even though this might have nothing to do with the actual WAVEFORMAT negotiated with WASAPI. For example, if the initial ao->format was a float and we had set the WAVEFORMAT to s24, this would create a non-existent float24 format. Worse, it might put an u16 into ao->format when WAVEFORMAT described s16. WASAPI doesn't support unsigned at all as far as I can tell.
Diffstat (limited to 'audio/out/ao_coreaudio_utils.c')
0 files changed, 0 insertions, 0 deletions