From 3d296600a17bdcc8c595e9032a109e07ae37cb13 Mon Sep 17 00:00:00 2001 From: Anthony Pesch Date: Thu, 18 Dec 2025 22:49:28 +0100 Subject: [PATCH] Add ALC_EXT_capture to present OpenAL extensions The extension is already implemented, however, alcIsExtensionPresent wasn't reporting it as present. --- src/lib/libopenal.js | 1 + test/codesize/test_codesize_hello_dylink_all.json | 4 ++-- test/openal/test_openal_extensions.c | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/lib/libopenal.js b/src/lib/libopenal.js index eeb28dc414c17..500e9d07ebfb8 100644 --- a/src/lib/libopenal.js +++ b/src/lib/libopenal.js @@ -25,6 +25,7 @@ var LibraryOpenAL = { ALC_EXTENSIONS: { // TODO: 'ALC_EXT_EFX': true, + 'ALC_EXT_capture': true, 'ALC_SOFT_pause_device': true, 'ALC_SOFT_HRTF': true }, diff --git a/test/codesize/test_codesize_hello_dylink_all.json b/test/codesize/test_codesize_hello_dylink_all.json index e388545b30493..ec7ac853f3145 100644 --- a/test/codesize/test_codesize_hello_dylink_all.json +++ b/test/codesize/test_codesize_hello_dylink_all.json @@ -1,7 +1,7 @@ { - "a.out.js": 245765, + "a.out.js": 245771, "a.out.nodebug.wasm": 573904, - "total": 819669, + "total": 819675, "sent": [ "IMG_Init", "IMG_Load", diff --git a/test/openal/test_openal_extensions.c b/test/openal/test_openal_extensions.c index 569f99cac2e37..6bc945fa330ea 100644 --- a/test/openal/test_openal_extensions.c +++ b/test/openal/test_openal_extensions.c @@ -17,8 +17,9 @@ #include #include -#define NUM_ALC_EXTENSIONS 2 +#define NUM_ALC_EXTENSIONS 3 static const ALCchar *alc_extensions[NUM_ALC_EXTENSIONS] = { + "ALC_EXT_capture", "ALC_SOFT_pause_device", "ALC_SOFT_HRTF", };