From 3c8d54e0656b56ae21da9b1568d008fb2a739698 Mon Sep 17 00:00:00 2001
From: MAJigsaw77 <77043862+MAJigsaw77@users.noreply.github.com>
Date: Sun, 22 Mar 2026 21:03:29 +0200
Subject: [PATCH 01/15] Remove `mojoal`
---
.gitmodules | 4 ----
project/Build.xml | 25 ++++++++++------------
project/lib/README.md | 1 -
project/lib/mojoal | 1 -
project/lib/mojoal-files.xml | 20 -----------------
project/src/backend/sdl/SDLApplication.cpp | 2 +-
6 files changed, 12 insertions(+), 41 deletions(-)
delete mode 160000 project/lib/mojoal
delete mode 100644 project/lib/mojoal-files.xml
diff --git a/.gitmodules b/.gitmodules
index 393daa81a4..3dbde91707 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -71,10 +71,6 @@
path = project/lib/mbedtls
url = https://github.com/Mbed-TLS/mbedtls
shallow = true
-[submodule "project/lib/mojoal"]
- path = project/lib/mojoal
- url = https://github.com/icculus/mojoAL
- shallow = true
[submodule "project/lib/hashlink"]
path = project/lib/hashlink
url = https://github.com/HaxeFoundation/hashlink
diff --git a/project/Build.xml b/project/Build.xml
index 080273bf5a..d88e5199bb 100644
--- a/project/Build.xml
+++ b/project/Build.xml
@@ -24,12 +24,8 @@
-
-
-
-
-
-
+
+
@@ -180,13 +176,16 @@
-
-
+
+
-
-
-
-
@@ -352,7 +351,6 @@
-
@@ -384,7 +382,6 @@
-
diff --git a/project/lib/README.md b/project/lib/README.md
index 92a72c8fa5..3e08643112 100644
--- a/project/lib/README.md
+++ b/project/lib/README.md
@@ -12,7 +12,6 @@ Lime includes code from several other C/C++ libraries, listed below. Lime prefer
- [**libjpeg-turbo**](https://www.libjpeg-turbo.org/) | [primary repo](https://github.com/libjpeg-turbo/libjpeg-turbo)
- **LZMA** | [download](https://www.7-zip.org/sdk.html) | [unofficial GitHub mirror](https://github.com/openfl/liblzma)
- [**mbed TLS**](https://tls.mbed.org/) | [primary repo](https://github.com/Mbed-TLS/mbedtls)
-- [**MojoAL**](https://icculus.org/mojoAL/) | [primary repo](https://github.com/icculus/mojoAL/)
- [**Neko**](https://nekovm.org/) | [primary repo](https://github.com/HaxeFoundation/neko)
- [**Ogg**](https://www.xiph.org/ogg/) | [primary repo](https://github.com/xiph/ogg)
- [**OpenAL Soft**](https://openal-soft.org/) | [primary repo](https://github.com/kcat/openal-soft)
diff --git a/project/lib/mojoal b/project/lib/mojoal
deleted file mode 160000
index 485967ff83..0000000000
--- a/project/lib/mojoal
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 485967ff83fbdff96ad0d46c68ec27977be53f4c
diff --git a/project/lib/mojoal-files.xml b/project/lib/mojoal-files.xml
deleted file mode 100644
index 08d1e24964..0000000000
--- a/project/lib/mojoal-files.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/project/src/backend/sdl/SDLApplication.cpp b/project/src/backend/sdl/SDLApplication.cpp
index cc34a990c8..b7f7938f45 100644
--- a/project/src/backend/sdl/SDLApplication.cpp
+++ b/project/src/backend/sdl/SDLApplication.cpp
@@ -44,7 +44,7 @@ namespace lime {
Uint32 initFlags = SDL_INIT_VIDEO | SDL_INIT_GAMEPAD | SDL_INIT_JOYSTICK | SDL_INIT_SENSOR;
- #if defined(LIME_MOJOAL) || defined(LIME_OPENALSOFT)
+ #ifdef LIME_OPENALSOFT
initFlags |= SDL_INIT_AUDIO;
#endif
From 9f74d917faf926cfa7f458958a036e6a80b60064 Mon Sep 17 00:00:00 2001
From: MAJigsaw77 <77043862+MAJigsaw77@users.noreply.github.com>
Date: Sun, 22 Mar 2026 22:50:47 +0200
Subject: [PATCH 02/15] Update `openal`
---
project/lib/custom/openal/include/config.h | 38 +-
.../backends/config_backends-macos-arm64.h | 41 -
.../backends/config_backends-macos-x86_64.h | 41 -
.../backends/config_backends-windows-x86_64.h | 41 -
.../include/config/config-linux-x86_64.h | 55 -
.../include/config/config-macos-arm64.h | 53 -
.../include/config/config-windows-x86.h | 53 -
.../include/config/simd/config_simd-android.h | 10 -
.../config/simd/config_simd-iphoneos.h | 10 -
.../config/simd/config_simd-linux-x86_64.h | 27 -
.../config/simd/config_simd-macos-arm64.h | 10 -
.../config/simd/config_simd-macos-x86_64.h | 10 -
.../config/simd/config_simd-windows-x86.h | 10 -
.../config/simd/config_simd-windows-x86_64.h | 10 -
.../custom/openal/include/config_backends.h | 40 +-
.../lib/custom/openal/include/config_simd.h | 42 +-
.../custom/openal/include/default_hrtf.hpp | 159845 +++++++++++++++
.../custom/openal/include/default_hrtf.txt | 159841 --------------
.../android/config.h} | 13 +-
.../android/config_backends.h} | 14 -
.../apple/config.h} | 21 +-
.../apple/config_backends.h} | 14 -
.../linux/config.h} | 29 +-
.../linux/config_backends.h} | 14 -
.../windows/config.h} | 15 +-
.../windows/config_backends.h} | 14 -
project/lib/custom/openal/include/version.h | 8 +-
project/lib/openal | 2 +-
project/lib/openal-files.xml | 414 +-
29 files changed, 160184 insertions(+), 160551 deletions(-)
delete mode 100644 project/lib/custom/openal/include/config/backends/config_backends-macos-arm64.h
delete mode 100644 project/lib/custom/openal/include/config/backends/config_backends-macos-x86_64.h
delete mode 100644 project/lib/custom/openal/include/config/backends/config_backends-windows-x86_64.h
delete mode 100644 project/lib/custom/openal/include/config/config-linux-x86_64.h
delete mode 100644 project/lib/custom/openal/include/config/config-macos-arm64.h
delete mode 100644 project/lib/custom/openal/include/config/config-windows-x86.h
delete mode 100644 project/lib/custom/openal/include/config/simd/config_simd-android.h
delete mode 100644 project/lib/custom/openal/include/config/simd/config_simd-iphoneos.h
delete mode 100644 project/lib/custom/openal/include/config/simd/config_simd-linux-x86_64.h
delete mode 100644 project/lib/custom/openal/include/config/simd/config_simd-macos-arm64.h
delete mode 100644 project/lib/custom/openal/include/config/simd/config_simd-macos-x86_64.h
delete mode 100644 project/lib/custom/openal/include/config/simd/config_simd-windows-x86.h
delete mode 100644 project/lib/custom/openal/include/config/simd/config_simd-windows-x86_64.h
create mode 100644 project/lib/custom/openal/include/default_hrtf.hpp
delete mode 100644 project/lib/custom/openal/include/default_hrtf.txt
rename project/lib/custom/openal/include/{config/config-android.h => platforms/android/config.h} (83%)
rename project/lib/custom/openal/include/{config/backends/config_backends-android.h => platforms/android/config_backends.h} (60%)
rename project/lib/custom/openal/include/{config/config-iphoneos.h => platforms/apple/config.h} (74%)
rename project/lib/custom/openal/include/{config/backends/config_backends-iphoneos.h => platforms/apple/config_backends.h} (60%)
rename project/lib/custom/openal/include/{config/config-macos-x86_64.h => platforms/linux/config.h} (68%)
rename project/lib/custom/openal/include/{config/backends/config_backends-linux-x86_64.h => platforms/linux/config_backends.h} (60%)
rename project/lib/custom/openal/include/{config/config-windows-x86_64.h => platforms/windows/config.h} (82%)
rename project/lib/custom/openal/include/{config/backends/config_backends-windows-x86.h => platforms/windows/config_backends.h} (60%)
diff --git a/project/lib/custom/openal/include/config.h b/project/lib/custom/openal/include/config.h
index bed50350dc..e6b81538da 100644
--- a/project/lib/custom/openal/include/config.h
+++ b/project/lib/custom/openal/include/config.h
@@ -1,29 +1,11 @@
-#if defined(HX_MACOS)
-
-#ifdef HXCPP_ARM64
-#include "config/config-macos-arm64.h"
-#else
-#include "config/config-macos-x86_64.h"
-#endif
-
-#elif defined(HX_WINDOWS)
-
-#ifdef HXCPP_M64
-#include "config/config-windows-x86_64.h"
-#else
-#include "config/config-windows-x86.h"
-#endif
-
-#elif defined(HX_LINUX)
-
-#include "config/config-linux-x86_64.h"
-
-#elif defined (HX_ANDROID)
-
-#include "config/config-android.h"
-
-#elif defined(IPHONE)
-
-#include "config/config-iphoneos.h"
-
+#if defined(_WIN32) || defined(_WIN64) || defined(__CYGWIN__)
+ #include "platforms/windows/config.h"
+#elif defined(__APPLE__) || defined(__MACH__)
+ #include "platforms/apple/config.h"
+#elif defined(__ANDROID__)
+ #include "platforms/android/config.h"
+#elif defined(__linux__)
+ #include "platforms/linux/config.h"
+#elif defined(__EMSCRIPTEN__)
+ #include "platforms/emscripten/config.h"
#endif
diff --git a/project/lib/custom/openal/include/config/backends/config_backends-macos-arm64.h b/project/lib/custom/openal/include/config/backends/config_backends-macos-arm64.h
deleted file mode 100644
index f536325fe0..0000000000
--- a/project/lib/custom/openal/include/config/backends/config_backends-macos-arm64.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/* Define to 1 if the given backend is enabled, else 0 */
-
-#define HAVE_ALSA 0
-
-#define HAVE_OSS 0
-
-#define HAVE_PIPEWIRE 0
-
-#define HAVE_SOLARIS 0
-
-#define HAVE_SNDIO 0
-
-#define HAVE_WASAPI 0
-
-#define HAVE_DSOUND 0
-
-#define HAVE_WINMM 0
-
-#define HAVE_PORTAUDIO 0
-
-#define HAVE_PULSEAUDIO 0
-
-#define HAVE_JACK 0
-
-#define HAVE_COREAUDIO 1
-
-#define HAVE_OPENSL 0
-
-#define HAVE_OBOE 0
-
-#define HAVE_OTHERIO 0
-
-#define HAVE_WAVE 1
-
-#define HAVE_SDL2 0
-
-#ifdef NATIVE_TOOLKIT_HAVE_SDL
-#define HAVE_SDL3 1
-#else
-#define HAVE_SDL3 0
-#endif
diff --git a/project/lib/custom/openal/include/config/backends/config_backends-macos-x86_64.h b/project/lib/custom/openal/include/config/backends/config_backends-macos-x86_64.h
deleted file mode 100644
index f536325fe0..0000000000
--- a/project/lib/custom/openal/include/config/backends/config_backends-macos-x86_64.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/* Define to 1 if the given backend is enabled, else 0 */
-
-#define HAVE_ALSA 0
-
-#define HAVE_OSS 0
-
-#define HAVE_PIPEWIRE 0
-
-#define HAVE_SOLARIS 0
-
-#define HAVE_SNDIO 0
-
-#define HAVE_WASAPI 0
-
-#define HAVE_DSOUND 0
-
-#define HAVE_WINMM 0
-
-#define HAVE_PORTAUDIO 0
-
-#define HAVE_PULSEAUDIO 0
-
-#define HAVE_JACK 0
-
-#define HAVE_COREAUDIO 1
-
-#define HAVE_OPENSL 0
-
-#define HAVE_OBOE 0
-
-#define HAVE_OTHERIO 0
-
-#define HAVE_WAVE 1
-
-#define HAVE_SDL2 0
-
-#ifdef NATIVE_TOOLKIT_HAVE_SDL
-#define HAVE_SDL3 1
-#else
-#define HAVE_SDL3 0
-#endif
diff --git a/project/lib/custom/openal/include/config/backends/config_backends-windows-x86_64.h b/project/lib/custom/openal/include/config/backends/config_backends-windows-x86_64.h
deleted file mode 100644
index 20d5ff95ce..0000000000
--- a/project/lib/custom/openal/include/config/backends/config_backends-windows-x86_64.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/* Define to 1 if the given backend is enabled, else 0 */
-
-#define HAVE_ALSA 0
-
-#define HAVE_OSS 0
-
-#define HAVE_PIPEWIRE 0
-
-#define HAVE_SOLARIS 0
-
-#define HAVE_SNDIO 0
-
-#define HAVE_WASAPI 1
-
-#define HAVE_DSOUND 0
-
-#define HAVE_WINMM 1
-
-#define HAVE_PORTAUDIO 0
-
-#define HAVE_PULSEAUDIO 0
-
-#define HAVE_JACK 0
-
-#define HAVE_COREAUDIO 0
-
-#define HAVE_OPENSL 0
-
-#define HAVE_OBOE 0
-
-#define HAVE_OTHERIO 0
-
-#define HAVE_WAVE 1
-
-#define HAVE_SDL2 0
-
-#ifdef NATIVE_TOOLKIT_HAVE_SDL
-#define HAVE_SDL3 1
-#else
-#define HAVE_SDL3 0
-#endif
diff --git a/project/lib/custom/openal/include/config/config-linux-x86_64.h b/project/lib/custom/openal/include/config/config-linux-x86_64.h
deleted file mode 100644
index fc496062cb..0000000000
--- a/project/lib/custom/openal/include/config/config-linux-x86_64.h
+++ /dev/null
@@ -1,55 +0,0 @@
-#define AL_API __attribute__((visibility("default")))
-#define ALC_API __attribute__((visibility("default")))
-
-/* Define the alignment attribute for externally callable functions. */
-#define FORCE_ALIGN
-
-/* Define if HRTF data is embedded in the library */
-#define ALSOFT_EMBED_HRTF_DATA
-
-/* Define if we have the proc_pidpath function */
-/* #define HAVE_PROC_PIDPATH */
-
-/* Define if we have dlfcn.h */
-#define HAVE_DLFCN_H
-
-/* Define if we have pthread_np.h */
-/* #define HAVE_PTHREAD_NP_H */
-
-/* Define if we have cpuid.h */
-#ifndef RASPBERRYPI
-#define HAVE_CPUID_H
-#endif
-
-/* Define if we have intrin.h */
-/* #define HAVE_INTRIN_H */
-
-/* Define if we have guiddef.h */
-/* #define HAVE_GUIDDEF_H */
-
-/* Define if we have GCC's __get_cpuid() */
-#define HAVE_GCC_GET_CPUID
-
-/* Define if we have the __cpuid() intrinsic */
-/* #define HAVE_CPUID_INTRINSIC */
-
-/* Define if we have pthread_setschedparam() */
-#define HAVE_PTHREAD_SETSCHEDPARAM
-
-/* Define if we have pthread_setname_np() */
-/* #define HAVE_PTHREAD_SETNAME_NP */
-
-/* Define if we have pthread_set_name_np() */
-/* #define HAVE_PTHREAD_SET_NAME_NP */
-
-/* Define the installation data directory */
-/* #define ALSOFT_INSTALL_DATADIR */
-
-/* Define to 1 if we have DBus/RTKit, else 0 */
-#define HAVE_RTKIT 0
-
-/* Define to 1 if building for winuwp, else 0 */
-#define ALSOFT_UWP 0
-
-/* Define to 1 if building with legacy EAX API support, else 0 */
-#define ALSOFT_EAX 0
diff --git a/project/lib/custom/openal/include/config/config-macos-arm64.h b/project/lib/custom/openal/include/config/config-macos-arm64.h
deleted file mode 100644
index 37fc934ce8..0000000000
--- a/project/lib/custom/openal/include/config/config-macos-arm64.h
+++ /dev/null
@@ -1,53 +0,0 @@
-#define AL_API __attribute__((visibility("default")))
-#define ALC_API __attribute__((visibility("default")))
-
-/* Define the alignment attribute for externally callable functions. */
-#define FORCE_ALIGN
-
-/* Define if HRTF data is embedded in the library */
-#define ALSOFT_EMBED_HRTF_DATA
-
-/* Define if we have the proc_pidpath function */
-/* #define HAVE_PROC_PIDPATH */
-
-/* Define if we have dlfcn.h */
-#define HAVE_DLFCN_H
-
-/* Define if we have pthread_np.h */
-/* #define HAVE_PTHREAD_NP_H */
-
-/* Define if we have cpuid.h */
-/* #define HAVE_CPUID_H */
-
-/* Define if we have intrin.h */
-/* #define HAVE_INTRIN_H */
-
-/* Define if we have guiddef.h */
-/* #define HAVE_GUIDDEF_H */
-
-/* Define if we have GCC's __get_cpuid() */
-/* #define HAVE_GCC_GET_CPUID */
-
-/* Define if we have the __cpuid() intrinsic */
-/* #define HAVE_CPUID_INTRINSIC */
-
-/* Define if we have pthread_setschedparam() */
-#define HAVE_PTHREAD_SETSCHEDPARAM
-
-/* Define if we have pthread_setname_np() */
-/* #define HAVE_PTHREAD_SETNAME_NP */
-
-/* Define if we have pthread_set_name_np() */
-/* #define HAVE_PTHREAD_SET_NAME_NP */
-
-/* Define the installation data directory */
-/* #define ALSOFT_INSTALL_DATADIR */
-
-/* Define to 1 if we have DBus/RTKit, else 0 */
-#define HAVE_RTKIT 0
-
-/* Define to 1 if building for winuwp, else 0 */
-#define ALSOFT_UWP 0
-
-/* Define to 1 if building with legacy EAX API support, else 0 */
-#define ALSOFT_EAX 0
diff --git a/project/lib/custom/openal/include/config/config-windows-x86.h b/project/lib/custom/openal/include/config/config-windows-x86.h
deleted file mode 100644
index dda90974db..0000000000
--- a/project/lib/custom/openal/include/config/config-windows-x86.h
+++ /dev/null
@@ -1,53 +0,0 @@
-#define AL_API __declspec(dllexport)
-#define ALC_API __declspec(dllexport)
-
-/* Define the alignment attribute for externally callable functions. */
-#define FORCE_ALIGN
-
-/* Define if HRTF data is embedded in the library */
-#define ALSOFT_EMBED_HRTF_DATA
-
-/* Define if we have the proc_pidpath function */
-/* #define HAVE_PROC_PIDPATH */
-
-/* Define if we have dlfcn.h */
-/* #define HAVE_DLFCN_H */
-
-/* Define if we have pthread_np.h */
-/* #define HAVE_PTHREAD_NP_H */
-
-/* Define if we have cpuid.h */
-/* #define HAVE_CPUID_H */
-
-/* Define if we have intrin.h */
-#define HAVE_INTRIN_H
-
-/* Define if we have guiddef.h */
-#define HAVE_GUIDDEF_H
-
-/* Define if we have GCC's __get_cpuid() */
-/* #define HAVE_GCC_GET_CPUID */
-
-/* Define if we have the __cpuid() intrinsic */
-#define HAVE_CPUID_INTRINSIC
-
-/* Define if we have pthread_setschedparam() */
-/* #define HAVE_PTHREAD_SETSCHEDPARAM */
-
-/* Define if we have pthread_setname_np() */
-/* #define HAVE_PTHREAD_SETNAME_NP */
-
-/* Define if we have pthread_set_name_np() */
-/* #define HAVE_PTHREAD_SET_NAME_NP */
-
-/* Define the installation data directory */
-/* #define ALSOFT_INSTALL_DATADIR */
-
-/* Define to 1 if we have DBus/RTKit, else 0 */
-#define HAVE_RTKIT 0
-
-/* Define to 1 if building for winuwp, else 0 */
-#define ALSOFT_UWP 0
-
-/* Define to 1 if building with legacy EAX API support, else 0 */
-#define ALSOFT_EAX 0
diff --git a/project/lib/custom/openal/include/config/simd/config_simd-android.h b/project/lib/custom/openal/include/config/simd/config_simd-android.h
deleted file mode 100644
index 5c10890c58..0000000000
--- a/project/lib/custom/openal/include/config/simd/config_simd-android.h
+++ /dev/null
@@ -1,10 +0,0 @@
-/* Define to 1 if we have SSE CPU extensions, else 0 */
-#define HAVE_SSE 0
-#define HAVE_SSE2 0
-#define HAVE_SSE3 0
-#define HAVE_SSE4_1 0
-
-#define HAVE_SSE_INTRINSICS 0
-
-/* Define to 1 if we have ARM Neon CPU extensions, else 0 */
-#define HAVE_NEON 0
diff --git a/project/lib/custom/openal/include/config/simd/config_simd-iphoneos.h b/project/lib/custom/openal/include/config/simd/config_simd-iphoneos.h
deleted file mode 100644
index 5c10890c58..0000000000
--- a/project/lib/custom/openal/include/config/simd/config_simd-iphoneos.h
+++ /dev/null
@@ -1,10 +0,0 @@
-/* Define to 1 if we have SSE CPU extensions, else 0 */
-#define HAVE_SSE 0
-#define HAVE_SSE2 0
-#define HAVE_SSE3 0
-#define HAVE_SSE4_1 0
-
-#define HAVE_SSE_INTRINSICS 0
-
-/* Define to 1 if we have ARM Neon CPU extensions, else 0 */
-#define HAVE_NEON 0
diff --git a/project/lib/custom/openal/include/config/simd/config_simd-linux-x86_64.h b/project/lib/custom/openal/include/config/simd/config_simd-linux-x86_64.h
deleted file mode 100644
index 3dc1b5b671..0000000000
--- a/project/lib/custom/openal/include/config/simd/config_simd-linux-x86_64.h
+++ /dev/null
@@ -1,27 +0,0 @@
-#ifndef RASPBERRYPI
-
-/* Define to 1 if we have SSE CPU extensions, else 0 */
-#define HAVE_SSE 1
-#define HAVE_SSE2 1
-#define HAVE_SSE3 1
-#define HAVE_SSE4_1 0
-
-#define HAVE_SSE_INTRINSICS 1
-
-/* Define to 1 if we have ARM Neon CPU extensions, else 0 */
-#define HAVE_NEON 0
-
-#else
-
-/* Define to 1 if we have SSE CPU extensions, else 0 */
-#define HAVE_SSE 0
-#define HAVE_SSE2 0
-#define HAVE_SSE3 0
-#define HAVE_SSE4_1 0
-
-#define HAVE_SSE_INTRINSICS 0
-
-/* Define to 1 if we have ARM Neon CPU extensions, else 0 */
-#define HAVE_NEON 1
-
-#endif
diff --git a/project/lib/custom/openal/include/config/simd/config_simd-macos-arm64.h b/project/lib/custom/openal/include/config/simd/config_simd-macos-arm64.h
deleted file mode 100644
index 1037e577e6..0000000000
--- a/project/lib/custom/openal/include/config/simd/config_simd-macos-arm64.h
+++ /dev/null
@@ -1,10 +0,0 @@
-/* Define to 1 if we have SSE CPU extensions, else 0 */
-#define HAVE_SSE 0
-#define HAVE_SSE2 0
-#define HAVE_SSE3 0
-#define HAVE_SSE4_1 0
-
-#define HAVE_SSE_INTRINSICS 0
-
-/* Define to 1 if we have ARM Neon CPU extensions, else 0 */
-#define HAVE_NEON 1
diff --git a/project/lib/custom/openal/include/config/simd/config_simd-macos-x86_64.h b/project/lib/custom/openal/include/config/simd/config_simd-macos-x86_64.h
deleted file mode 100644
index 786df8dc40..0000000000
--- a/project/lib/custom/openal/include/config/simd/config_simd-macos-x86_64.h
+++ /dev/null
@@ -1,10 +0,0 @@
-/* Define to 1 if we have SSE CPU extensions, else 0 */
-#define HAVE_SSE 1
-#define HAVE_SSE2 1
-#define HAVE_SSE3 1
-#define HAVE_SSE4_1 0
-
-#define HAVE_SSE_INTRINSICS 1
-
-/* Define to 1 if we have ARM Neon CPU extensions, else 0 */
-#define HAVE_NEON 0
diff --git a/project/lib/custom/openal/include/config/simd/config_simd-windows-x86.h b/project/lib/custom/openal/include/config/simd/config_simd-windows-x86.h
deleted file mode 100644
index 786df8dc40..0000000000
--- a/project/lib/custom/openal/include/config/simd/config_simd-windows-x86.h
+++ /dev/null
@@ -1,10 +0,0 @@
-/* Define to 1 if we have SSE CPU extensions, else 0 */
-#define HAVE_SSE 1
-#define HAVE_SSE2 1
-#define HAVE_SSE3 1
-#define HAVE_SSE4_1 0
-
-#define HAVE_SSE_INTRINSICS 1
-
-/* Define to 1 if we have ARM Neon CPU extensions, else 0 */
-#define HAVE_NEON 0
diff --git a/project/lib/custom/openal/include/config/simd/config_simd-windows-x86_64.h b/project/lib/custom/openal/include/config/simd/config_simd-windows-x86_64.h
deleted file mode 100644
index 786df8dc40..0000000000
--- a/project/lib/custom/openal/include/config/simd/config_simd-windows-x86_64.h
+++ /dev/null
@@ -1,10 +0,0 @@
-/* Define to 1 if we have SSE CPU extensions, else 0 */
-#define HAVE_SSE 1
-#define HAVE_SSE2 1
-#define HAVE_SSE3 1
-#define HAVE_SSE4_1 0
-
-#define HAVE_SSE_INTRINSICS 1
-
-/* Define to 1 if we have ARM Neon CPU extensions, else 0 */
-#define HAVE_NEON 0
diff --git a/project/lib/custom/openal/include/config_backends.h b/project/lib/custom/openal/include/config_backends.h
index c9a13c6155..0327fd0690 100644
--- a/project/lib/custom/openal/include/config_backends.h
+++ b/project/lib/custom/openal/include/config_backends.h
@@ -1,29 +1,21 @@
-#if defined(HX_MACOS) && defined(HXCPP_ARM64)
-
-#include "config/backends/config_backends-macos-arm64.h"
-
-#elif defined(HX_MACOS)
-
-#include "config/backends/config_backends-macos-x86_64.h"
+/* Define to 1 if the given backend is enabled, else 0 */
+
+#if defined(_WIN32) || defined(_WIN64) || defined(__CYGWIN__)
+ #include "platforms/windows/config_backends.h"
+#elif defined(__APPLE__) || defined(__MACH__)
+ #include "platforms/apple/config_backends.h"
+#elif defined(__ANDROID__)
+ #include "platforms/android/config_backends.h"
+#elif defined(__linux__)
+ #include "platforms/linux/config_backends.h"
+#endif
-#elif defined(HX_WINDOWS)
+#define HAVE_WAVE 0
-#ifdef HXCPP_M64
-#include "config/backends/config_backends-windows-x86_64.h"
+#ifdef NATIVE_TOOLKIT_HAVE_SDL
+#define HAVE_SDL3 1
#else
-#include "config/backends/config_backends-windows-x86.h"
+#define HAVE_SDL3 0
#endif
-#elif defined(HX_LINUX)
-
-#include "config/backends/config_backends-linux-x86_64.h"
-
-#elif defined (HX_ANDROID)
-
-#include "config/backends/config_backends-android.h"
-
-#elif defined(IPHONE)
-
-#include "config/backends/config_backends-iphoneos.h"
-
-#endif
+#define HAVE_SDL2 0
diff --git a/project/lib/custom/openal/include/config_simd.h b/project/lib/custom/openal/include/config_simd.h
index b7ba16815a..ad20f40262 100644
--- a/project/lib/custom/openal/include/config_simd.h
+++ b/project/lib/custom/openal/include/config_simd.h
@@ -1,29 +1,21 @@
-#if defined(HX_MACOS) && defined(HXCPP_ARM64)
-
-#include "config/simd/config_simd-macos-arm64.h"
-
-#elif defined(HX_MACOS)
-
-#include "config/simd/config_simd-macos-x86_64.h"
-
-#elif defined(HX_WINDOWS)
-
-#ifdef HXCPP_M64
-#include "config/simd/config_simd-windows-x86_64.h"
+/* Define to 1 if we have SSE CPU extensions, else 0 */
+#if defined(_M_IX86) || defined(_M_X64) || defined(__i386__) || defined(__x86_64__)
+ #define HAVE_SSE 1
+ #define HAVE_SSE2 1
+ #define HAVE_SSE3 1
+ #define HAVE_SSE4_1 1
+ #define HAVE_SSE_INTRINSICS 1
#else
-#include "config/simd/config_simd-windows-x86.h"
+ #define HAVE_SSE 0
+ #define HAVE_SSE2 0
+ #define HAVE_SSE3 0
+ #define HAVE_SSE4_1 0
+ #define HAVE_SSE_INTRINSICS 0
#endif
-#elif defined(HX_LINUX)
-
-#include "config/simd/config_simd-linux-x86_64.h"
-
-#elif defined (HX_ANDROID)
-
-#include "config/simd/config_simd-android.h"
-
-#elif defined(IPHONE)
-
-#include "config/simd/config_simd-iphoneos.h"
-
+/* Define to 1 if we have ARM Neon CPU extensions, else 0 */
+#if defined(_M_ARM64) || defined(__aarch64__)
+ #define HAVE_NEON 1
+#else
+ #define HAVE_NEON 0
#endif
diff --git a/project/lib/custom/openal/include/default_hrtf.hpp b/project/lib/custom/openal/include/default_hrtf.hpp
new file mode 100644
index 0000000000..3cbdef7b8a
--- /dev/null
+++ b/project/lib/custom/openal/include/default_hrtf.hpp
@@ -0,0 +1,159845 @@
+#pragma once
+
+char default_hrtf[] = {
+ static_cast(0x4d),
+ static_cast(0x69),
+ static_cast(0x6e),
+ static_cast(0x50),
+ static_cast(0x48),
+ static_cast(0x52),
+ static_cast(0x30),
+ static_cast(0x33),
+ static_cast(0x80),
+ static_cast(0xbb),
+ static_cast(0x00),
+ static_cast(0x00),
+ static_cast(0x00),
+ static_cast(0x40),
+ static_cast(0x01),
+ static_cast(0x78),
+ static_cast(0x05),
+ static_cast(0x13),
+ static_cast(0x01),
+ static_cast(0x0c),
+ static_cast(0x18),
+ static_cast(0x24),
+ static_cast(0x2d),
+ static_cast(0x38),
+ static_cast(0x3c),
+ static_cast(0x48),
+ static_cast(0x48),
+ static_cast(0x48),
+ static_cast(0x48),
+ static_cast(0x48),
+ static_cast(0x3c),
+ static_cast(0x38),
+ static_cast(0x2d),
+ static_cast(0x24),
+ static_cast(0x18),
+ static_cast(0x0c),
+ static_cast(0x01),
+ static_cast(0x2b),
+ static_cast(0x76),
+ static_cast(0x12),
+ static_cast(0x17),
+ static_cast(0x4f),
+ static_cast(0x2c),
+ static_cast(0xcf),
+ static_cast(0xcd),
+ static_cast(0x19),
+ static_cast(0x7d),
+ static_cast(0x2a),
+ static_cast(0xff),
+ static_cast(0xe7),
+ static_cast(0x4f),
+ static_cast(0x01),
+ static_cast(0x5b),
+ static_cast(0x38),
+ static_cast(0xfb),
+ static_cast(0x5c),
+ static_cast(0xf1),
+ static_cast(0xfe),
+ static_cast(0x69),
+ static_cast(0x68),
+ static_cast(0x08),
+ static_cast(0xac),
+ static_cast(0xba),
+ static_cast(0xfb),
+ static_cast(0xc2),
+ static_cast(0x01),
+ static_cast(0xf3),
+ static_cast(0x40),
+ static_cast(0x05),
+ static_cast(0xfb),
+ static_cast(0xc1),
+ static_cast(0xe8),
+ static_cast(0x09),
+ static_cast(0x05),
+ static_cast(0x65),
+ static_cast(0x06),
+ static_cast(0x55),
+ static_cast(0x9b),
+ static_cast(0xf8),
+ static_cast(0x98),
+ static_cast(0x8c),
+ static_cast(0xf4),
+ static_cast(0x54),
+ static_cast(0xdf),
+ static_cast(0xf3),
+ static_cast(0x70),
+ static_cast(0x08),
+ static_cast(0xff),
+ static_cast(0x16),
+ static_cast(0xb0),
+ static_cast(0x05),
+ static_cast(0x3a),
+ static_cast(0x58),
+ static_cast(0xff),
+ static_cast(0xdc),
+ static_cast(0xfe),
+ static_cast(0xfb),
+ static_cast(0x26),
+ static_cast(0xd1),
+ static_cast(0xfc),
+ static_cast(0xaf),
+ static_cast(0x27),
+ static_cast(0xff),
+ static_cast(0x0c),
+ static_cast(0x1c),
+ static_cast(0xfd),
+ static_cast(0x30),
+ static_cast(0xc6),
+ static_cast(0xfd),
+ static_cast(0x1f),
+ static_cast(0xc7),
+ static_cast(0xfe),
+ static_cast(0x2d),
+ static_cast(0x5a),
+ static_cast(0xfd),
+ static_cast(0xcc),
+ static_cast(0x58),
+ static_cast(0xff),
+ static_cast(0x6e),
+ static_cast(0x41),
+ static_cast(0xfd),
+ static_cast(0xea),
+ static_cast(0xa5),
+ static_cast(0xfc),
+ static_cast(0xea),
+ static_cast(0xb1),
+ static_cast(0xfe),
+ static_cast(0x62),
+ static_cast(0x04),
+ static_cast(0xff),
+ static_cast(0xa3),
+ static_cast(0x92),
+ static_cast(0xff),
+ static_cast(0x1a),
+ static_cast(0x2b),
+ static_cast(0xff),
+ static_cast(0x24),
+ static_cast(0x83),
+ static_cast(0xff),
+ static_cast(0xbb),
+ static_cast(0xbf),
+ static_cast(0xfe),
+ static_cast(0x65),
+ static_cast(0xe1),
+ static_cast(0xfe),
+ static_cast(0xe2),
+ static_cast(0x96),
+ static_cast(0xff),
+ static_cast(0x40),
+ static_cast(0xf7),
+ static_cast(0xfe),
+ static_cast(0xc6),
+ static_cast(0x14),
+ static_cast(0x00),
+ static_cast(0x5b),
+ static_cast(0x07),
+ static_cast(0x00),
+ static_cast(0xc3),
+ static_cast(0x8d),
+ static_cast(0xff),
+ static_cast(0x2f),
+ static_cast(0x70),
+ static_cast(0xff),
+ static_cast(0x55),
+ static_cast(0xb4),
+ static_cast(0xfe),
+ static_cast(0xb3),
+ static_cast(0xa7),
+ static_cast(0xfe),
+ static_cast(0x06),
+ static_cast(0x53),
+ static_cast(0xfe),
+ static_cast(0x7d),
+ static_cast(0x3b),
+ static_cast(0xfe),
+ static_cast(0x7d),
+ static_cast(0x33),
+ static_cast(0xfe),
+ static_cast(0x2a),
+ static_cast(0x6b),
+ static_cast(0xfe),
+ static_cast(0x71),
+ static_cast(0xb6),
+ static_cast(0xfe),
+ static_cast(0x21),
+ static_cast(0x5d),
+ static_cast(0xfe),
+ static_cast(0x28),
+ static_cast(0xce),
+ static_cast(0xfe),
+ static_cast(0x9d),
+ static_cast(0x9f),
+ static_cast(0xff),
+ static_cast(0xbe),
+ static_cast(0x51),
+ static_cast(0x00),
+ static_cast(0xc1),
+ static_cast(0x54),
+ static_cast(0x00),
+ static_cast(0xa3),
+ static_cast(0xb9),
+ static_cast(0xff),
+ static_cast(0x60),
+ static_cast(0x8e),
+ static_cast(0xff),
+ static_cast(0x9e),
+ static_cast(0x27),
+ static_cast(0xff),
+ static_cast(0x05),
+ static_cast(0x05),
+ static_cast(0xff),
+ static_cast(0xe8),
+ static_cast(0xf4),
+ static_cast(0xfe),
+ static_cast(0x70),
+ static_cast(0x43),
+ static_cast(0xfe),
+ static_cast(0x8d),
+ static_cast(0x4f),
+ static_cast(0xfe),
+ static_cast(0x35),
+ static_cast(0xcd),
+ static_cast(0xfe),
+ static_cast(0x74),
+ static_cast(0x3a),
+ static_cast(0xff),
+ static_cast(0xe6),
+ static_cast(0xe3),
+ static_cast(0xff),
+ static_cast(0x9d),
+ static_cast(0xd5),
+ static_cast(0x13),
+ static_cast(0xd5),
+ static_cast(0xeb),
+ static_cast(0x2c),
+ static_cast(0xd4),
+ static_cast(0xb8),
+ static_cast(0x15),
+ static_cast(0x2f),
+ static_cast(0x7d),
+ static_cast(0xfc),
+ static_cast(0x99),
+ static_cast(0x13),
+ static_cast(0x03),
+ static_cast(0xde),
+ static_cast(0xc8),
+ static_cast(0xfb),
+ static_cast(0x76),
+ static_cast(0x08),
+ static_cast(0xff),
+ static_cast(0xf2),
+ static_cast(0x4e),
+ static_cast(0x08),
+ static_cast