Merge pull request #282 from tycho/pr/wasapi-backend-fallback-fix

wasapi: ensure that wasapi context structure is zeroed before filling it
This commit is contained in:
David Reid
2021-03-11 17:30:59 +10:00
committed by GitHub
+2
View File
@@ -16257,6 +16257,8 @@ static ma_result ma_context_init__wasapi(ma_context* pContext, const ma_context_
return result;
}
MA_ZERO_OBJECT(&pContext->wasapi);
/*
Annoyingly, WASAPI does not allow you to release an IAudioClient object from a different thread
than the one that retrieved it with GetService(). This can result in a deadlock in two