diff options
author | wm4 <wm4@nowhere> | 2017-06-28 18:28:19 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-06-28 18:43:18 +0200 |
commit | 3b7e292844f52783cdefe068bb7bc5cd35a8dcdb (patch) | |
tree | c8e1eb95edce47a3df87fc369df0db560e554988 /common/msg.h | |
parent | 36fadac7506a1fdb8f5b8d20e28e6977da7bbea7 (diff) | |
download | mpv-3b7e292844f52783cdefe068bb7bc5cd35a8dcdb.tar.bz2 mpv-3b7e292844f52783cdefe068bb7bc5cd35a8dcdb.tar.xz |
ao_wasapi: remove duplicate code for creating IAudioClient
The code accounting for the terrible AUDCLNT_E_BUFFER_SIZE_NOT_ALIGNED
semantics (which MSDN claims can happen "starting with Windows 7" - so
probably on Windows 10 too) duplicated the call for creating the
IAudioClient. That's not great, so get rid of it.
Let wasapi_thread_init() handle this. It has a retry loop anyway. This
redoes device lookup and format negotiation, but potential failures due
to race conditions (what if the driver decides to change behavior)
shouldn't be worse than before.
Diffstat (limited to 'common/msg.h')
0 files changed, 0 insertions, 0 deletions