Browse Source

wasapi: Patched to compile.

Ryan C. Gordon 1 year ago
parent
commit
85923049a6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/audio/wasapi/SDL_wasapi_win32.c

+ 2 - 1
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)