From 85923049a6a6b500848dd3b258b267aab74c05c6 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Thu, 26 Oct 2023 23:09:11 -0400
Subject: [PATCH] wasapi: Patched to compile.
---
src/audio/wasapi/SDL_wasapi_win32.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/audio/wasapi/SDL_wasapi_win32.c b/src/audio/wasapi/SDL_wasapi_win32.c
index b69515451859..3021a6fb042c 100644
--- a/src/audio/wasapi/SDL_wasapi_win32.c
+++ b/src/audio/wasapi/SDL_wasapi_win32.c
@@ -56,7 +56,8 @@ static int mgmtthrtask_DefaultAudioDeviceChanged(void *userdata)
static void WASAPI_DefaultAudioDeviceChanged(SDL_AudioDevice *new_default_device)
{
- WASAPI_ProxyToManagementThread(mgmtthrtask_DetectDevices, new_default_device, NULL); // don't wait on this, IMMDevice's own thread needs to return or everything will deadlock.
+ // don't wait on this, IMMDevice's own thread needs to return or everything will deadlock.
+ WASAPI_ProxyToManagementThread(mgmtthrtask_DefaultAudioDeviceChanged, new_default_device, NULL);
}
int WASAPI_PlatformInit(void)