Commit e3c9975e authored by David Reid's avatar David Reid Committed by GitHub

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

wasapi: ensure that wasapi context structure is zeroed before filling it
parents 0a7207d5 e4ff49d5
...@@ -16257,6 +16257,8 @@ static ma_result ma_context_init__wasapi(ma_context* pContext, const ma_context_ ...@@ -16257,6 +16257,8 @@ static ma_result ma_context_init__wasapi(ma_context* pContext, const ma_context_
return result; return result;
} }
MA_ZERO_OBJECT(&pContext->wasapi);
/* /*
Annoyingly, WASAPI does not allow you to release an IAudioClient object from a different thread 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 than the one that retrieved it with GetService(). This can result in a deadlock in two
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment