mkxp-z/subprojects/packagefiles/openal-soft-null.patch
刘皓 74f4c0e714
Downgrade OpenAL Soft from 1.24.2 to 1.23.1 in libretro builds
OpenAL Soft 1.24 introduces a lot of code that doesn't work well with
the PlayStation 3 homebrew toolchain, and also the old version of the
Wii U homebrew toolchain currently used by the libretro buildbot.
Instead of maintaining a bunch of patches to get 1.24 to work on these
toolchains, I think it'd be easier to just use 1.23.
2025-04-08 14:27:20 -04:00

35 lines
1,023 B
Diff

# Disables OpenAL Soft's null backend since it fails to compile for PlayStation 3. Don't worry, we don't need the null backend.
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -881,7 +881,7 @@ set(ALC_OBJS ${ALC_OBJS}
# Default backends, always available
alc/backends/loopback.cpp
alc/backends/loopback.h
- alc/backends/null.cpp
+
alc/backends/null.h
)
diff --git a/alc/alc.cpp b/alc/alc.cpp
index af8ff55d..0319a486 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -251,7 +251,7 @@ BackendInfo BackendList[] = {
{ "sdl2", SDL2BackendFactory::getFactory },
#endif
- { "null", NullBackendFactory::getFactory },
+ { "null", nullptr },
#ifdef HAVE_WAVE
{ "wave", WaveBackendFactory::getFactory },
#endif
@@ -1289,7 +1289,7 @@ void alc_initconfig(void)
{
if(PlaybackFactory && CaptureFactory)
return;
-
+ if (!std::strcmp(backend.name, "null")) return;
BackendFactory &factory = backend.getFactory();
if(!factory.init())
{