summaryrefslogtreecommitdiffstats
path: root/audio/out/ao_wasapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'audio/out/ao_wasapi.h')
-rwxr-xr-xaudio/out/ao_wasapi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/out/ao_wasapi.h b/audio/out/ao_wasapi.h
index d17b2504a0..4fe80a6c8f 100755
--- a/audio/out/ao_wasapi.h
+++ b/audio/out/ao_wasapi.h
@@ -24,6 +24,7 @@
#define _WIN32_WINNT 0x600
#include <audioclient.h>
+#include <audiopolicy.h>
#include <mmdeviceapi.h>
#include <avrt.h>
@@ -58,6 +59,7 @@ typedef struct wasapi_state {
IAudioRenderClient *pRenderClient;
ISimpleAudioVolume *pAudioVolume;
IAudioEndpointVolume *pEndpointVolume;
+ IAudioSessionControl *pSessionControl;
HANDLE hFeed; /* wasapi event */
HANDLE hForceFeed; /* forces writing a buffer (e.g. before audio_resume) */
HANDLE hFeedDone; /* set only after a hForceFeed */
@@ -70,6 +72,7 @@ typedef struct wasapi_state {
IAudioClient *pAudioClientProxy;
ISimpleAudioVolume *pAudioVolumeProxy;
IAudioEndpointVolume *pEndpointVolumeProxy;
+ IAudioSessionControl *pSessionControlProxy;
/* Streams used to marshal the proxy objects. The thread owning the actual objects
needs to marshal proxy objects into these streams, and the thread that wants the
@@ -77,6 +80,7 @@ typedef struct wasapi_state {
IStream *sAudioClient;
IStream *sAudioVolume;
IStream *sEndpointVolume;
+ IStream *sSessionControl;
/* WASAPI internal clock information, for estimating delay */
IAudioClock *pAudioClock;