Commit 2f0edc290642a45a9f415b331eeae6fbcc19e7fb

ALittleDruid 2021-12-04T09:23:19

IAudioClient::SetEventHandle Parameter eventHandle Should not be NULL

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/audio/wasapi/SDL_wasapi.c b/src/audio/wasapi/SDL_wasapi.c
index 8da25ca..f2d1b16 100644
--- a/src/audio/wasapi/SDL_wasapi.c
+++ b/src/audio/wasapi/SDL_wasapi.c
@@ -425,7 +425,6 @@ ReleaseWasapiDevice(_THIS)
 {
     if (this->hidden->client) {
         IAudioClient_Stop(this->hidden->client);
-        IAudioClient_SetEventHandle(this->hidden->client, NULL);
         IAudioClient_Release(this->hidden->client);
         this->hidden->client = NULL;
     }