From 296db277bf0fd3a2a5cd38af1d34a81331202ecd Mon Sep 17 00:00:00 2001 From: idea4good Date: Wed, 4 Sep 2019 15:00:19 +0800 Subject: [PATCH] replace CreateEventEx by CreateEvent for Qt --- core/adapter/audio_win.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/adapter/audio_win.cpp b/core/adapter/audio_win.cpp index 6eb543a..9f633a9 100644 --- a/core/adapter/audio_win.cpp +++ b/core/adapter/audio_win.cpp @@ -214,7 +214,8 @@ void c_audio::init() AUDIO_OUTPUT_BUF_LEN * 2, 0, &s_wav_format, 0); CHECK_ERROR(ret); - s_audio_event = CreateEventEx(0, 0, 0, EVENT_ALL_ACCESS); + //s_audio_event = CreateEventEx(0, 0, 0, EVENT_ALL_ACCESS); + s_audio_event = CreateEvent(0, 0, 0, 0); ret = s_audio_client->SetEventHandle(s_audio_event); CHECK_ERROR(ret);