Commit f466414f authored by Fabio Arnold's avatar Fabio Arnold Committed by David Reid

webaudio: Remove miniaudio from window on uninit

parent be32dc0e
...@@ -38756,8 +38756,14 @@ static ma_result ma_context_uninit__webaudio(ma_context* pContext) ...@@ -38756,8 +38756,14 @@ static ma_result ma_context_uninit__webaudio(ma_context* pContext)
MA_ASSERT(pContext != NULL); MA_ASSERT(pContext != NULL);
MA_ASSERT(pContext->backend == ma_backend_webaudio); MA_ASSERT(pContext->backend == ma_backend_webaudio);
/* Nothing needs to be done here. */ (void)pContext; /* Unused. */
(void)pContext;
/* Remove the global miniaudio object from window. */
EM_ASM({
if (typeof(window.miniaudio) !== 'undefined') {
delete window.miniaudio;
}
});
return MA_SUCCESS; return MA_SUCCESS;
} }
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