From 3dfcefc75b5b9a98fc9db5217fedbd689927a584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=BCller?= Date: Sat, 13 Sep 2025 22:29:21 +0200 Subject: [PATCH 1/3] Fix access to miniaudio in ma_context_uninit__webaudio. --- miniaudio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miniaudio.h b/miniaudio.h index 1e4e2c65..bbf70f53 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -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. */ EM_ASM({ if (typeof(window.miniaudio) !== 'undefined') { - miniaudio.unlock_event_types.map(function(event_type) { - document.removeEventListener(event_type, miniaudio.unlock, true); + window.miniaudio.unlock_event_types.map(function(event_type) { + document.removeEventListener(event_type, window.miniaudio.unlock, true); }); window.miniaudio.referenceCount -= 1; From ed2c5270c8fd0cff62327985cba4b85188d11e10 Mon Sep 17 00:00:00 2001 From: David Reid Date: Sun, 14 Sep 2025 07:36:30 +1000 Subject: [PATCH 2/3] Fix a typo. --- miniaudio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniaudio.h b/miniaudio.h index bbf70f53..853b3c03 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -9675,7 +9675,7 @@ Parameters ---------- pBackends (out, optional) A pointer to the buffer that will receive the enabled backends. Set to NULL to retrieve the backend count. Setting - the capacity of the buffer to `MA_BUFFER_COUNT` will guarantee it's large enough for all backends. + the capacity of the buffer to `MA_BACKEND_COUNT` will guarantee it's large enough for all backends. backendCap (in) The capacity of the `pBackends` buffer. From b3c6bcec39a9322cc35fe4deb9b0b97552a67aca Mon Sep 17 00:00:00 2001 From: David Reid Date: Sun, 14 Sep 2025 07:39:08 +1000 Subject: [PATCH 3/3] Update change history and version number. --- CHANGES.md | 5 +++++ miniaudio.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 523efb63..03b9c400 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,8 @@ +v0.11.24 - TBD +===================== +* Web: Fixed an error when uninitializing a context. + + v0.11.23 - 2025-09-11 ===================== * Fixed an error in `ma_channel_map_to_string()` where the output string is not null terminated correctly. diff --git a/miniaudio.h b/miniaudio.h index 853b3c03..aad4459a 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -1,6 +1,6 @@ /* Audio playback and capture library. Choice of public domain or MIT-0. See license statements at the end of this file. -miniaudio - v0.11.23 - 2025-09-11 +miniaudio - v0.11.24 - TBD David Reid - mackron@gmail.com @@ -3747,7 +3747,7 @@ extern "C" { #define MA_VERSION_MAJOR 0 #define MA_VERSION_MINOR 11 -#define MA_VERSION_REVISION 23 +#define MA_VERSION_REVISION 24 #define MA_VERSION_STRING MA_XSTRINGIFY(MA_VERSION_MAJOR) "." MA_XSTRINGIFY(MA_VERSION_MINOR) "." MA_XSTRINGIFY(MA_VERSION_REVISION) #if defined(_MSC_VER) && !defined(__clang__)