[vlc-commits] aout: winstore: select the audio output using ActivateAudioInterfaceAsync
Steve Lhomme
git at videolan.org
Tue Jul 7 09:10:35 CEST 2020
vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jun 23 12:49:27 2020 +0200| [1c69039126582a8aaa9d3ef7d283d0fdc57949b8] | committer: Steve Lhomme
aout: winstore: select the audio output using ActivateAudioInterfaceAsync
See the API https://docs.microsoft.com/en-us/windows/win32/api/mmdeviceapi/nf-mmdeviceapi-activateaudiointerfaceasync
It requires a recent mingw-w64 with the added API.
We request the IAudioClient asynchronously and return the found client or NULL
once the async call as completed.
The code originates from the vlc-winrt project with some modifications.
Do not rely anymore on the local "winstore-client" variable to cache the
IAudioClient. A client is queried/used between each Start/Stop calls.
(cherry picked from commit 32349b35de2b02ea16c08ac8c2f62966ba5641ad) (edited)
edited:
- the structure in this branch already exists as a a typedef
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=1c69039126582a8aaa9d3ef7d283d0fdc57949b8
---
modules/audio_output/Makefile.am | 2 +-
modules/audio_output/winstore.c | 311 +++++++++++++++++++++++++++++++++++----
2 files changed, 286 insertions(+), 27 deletions(-)
Diff: http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commitdiff;h=1c69039126582a8aaa9d3ef7d283d0fdc57949b8
More information about the vlc-commits
mailing list