diff options
author | Kevin Mitchell <kevmitch@gmail.com> | 2015-03-28 17:12:48 -0700 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2015-04-04 16:31:14 -0700 |
commit | 642f84f9227607f0c64bf35ec5896cb80804f64f (patch) | |
tree | 6c21e7b59235686b5284ec2ad47858eb6b6ce5bf /audio/out/ao_wasapi_utils.h | |
parent | fe60cff03bbdc0790f96365d6cf3ab8116785bb0 (diff) | |
download | mpv-642f84f9227607f0c64bf35ec5896cb80804f64f.tar.bz2 mpv-642f84f9227607f0c64bf35ec5896cb80804f64f.tar.xz |
ao/wasapi: use atomic state variable instead of different events
Unfortunately, because we have proxy objects (pAudioVolumeProxy,
pEndpointVolumeProxy, pSessionControlProxy) it looks like we still
have to use MsgWaitForMultipleObjects and watch for and dispatch
pending messages:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms680112%28v=vs.85%29.aspx
Diffstat (limited to 'audio/out/ao_wasapi_utils.h')
-rwxr-xr-x | audio/out/ao_wasapi_utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/out/ao_wasapi_utils.h b/audio/out/ao_wasapi_utils.h index 330a502046..5ac2d3efba 100755 --- a/audio/out/ao_wasapi_utils.h +++ b/audio/out/ao_wasapi_utils.h @@ -38,7 +38,7 @@ bool wasapi_fill_VistaBlob(wasapi_state *state); void wasapi_list_devs(struct ao *ao, struct ao_device_list *list); -void wasapi_dispatch(void); +void wasapi_dispatch(struct ao *ao); HRESULT wasapi_thread_init(struct ao *ao); void wasapi_thread_uninit(struct ao *ao); |