From 0141e4c4409c817e8c1041802506135c61c5e531 Mon Sep 17 00:00:00 2001 From: halx99 Date: Mon, 1 Dec 2025 21:11:49 +0800 Subject: [PATCH] Refactor AX_USE_ALSOFT definition logic --- core/audio/oal_port.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/core/audio/oal_port.h b/core/audio/oal_port.h index f9bb802b9ae3..2cb81ef35c5d 100644 --- a/core/audio/oal_port.h +++ b/core/audio/oal_port.h @@ -25,14 +25,14 @@ ****************************************************************************/ #pragma once -#if !defined(__APPLE__) && !defined(__EMSCRIPTEN__) -# if !defined(AX_USE_ALSOFT) -# define AX_USE_ALSOFT 1 -# endif +#if defined(AX_USE_ALSOFT) +# undef AX_USE_ALSOFT +#endif + +#if !defined(__EMSCRIPTEN__) +# define AX_USE_ALSOFT 1 #else -# if !defined(AX_USE_ALSOFT) -# define AX_USE_ALSOFT 0 -# endif +# define AX_USE_ALSOFT 0 #endif // Use the OpenAL Soft headers bundled with Axmol instead of system-installed AL/xxx.h.