mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 08:14:04 +02:00
Fix access to miniaudio in ma_context_uninit__webaudio.
This commit is contained in:
committed by
David Reid
parent
f40cf03f80
commit
3dfcefc75b
+2
-2
@@ -42237,8 +42237,8 @@ static ma_result ma_context_uninit__webaudio(ma_context* pContext)
|
|||||||
/* Remove the global miniaudio object from window if there are no more references to it. */
|
/* Remove the global miniaudio object from window if there are no more references to it. */
|
||||||
EM_ASM({
|
EM_ASM({
|
||||||
if (typeof(window.miniaudio) !== 'undefined') {
|
if (typeof(window.miniaudio) !== 'undefined') {
|
||||||
miniaudio.unlock_event_types.map(function(event_type) {
|
window.miniaudio.unlock_event_types.map(function(event_type) {
|
||||||
document.removeEventListener(event_type, miniaudio.unlock, true);
|
document.removeEventListener(event_type, window.miniaudio.unlock, true);
|
||||||
});
|
});
|
||||||
|
|
||||||
window.miniaudio.referenceCount -= 1;
|
window.miniaudio.referenceCount -= 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user