From 642f84f9227607f0c64bf35ec5896cb80804f64f Mon Sep 17 00:00:00 2001 From: Kevin Mitchell Date: Sat, 28 Mar 2015 17:12:48 -0700 Subject: 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 --- audio/out/ao_wasapi_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio/out/ao_wasapi_utils.h') 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); -- cgit v1.2.3