wasapi: Patched to compile.

main
Ryan C. Gordon 2023-10-26 23:09:11 -04:00
parent 9bec57309c
commit 85923049a6
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 2 additions and 1 deletions

View File

@ -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)