From 816bd8ab309dc0fe9afefcc5e3f2c294d3dc60a5 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 30 Jan 2022 05:42:44 -0800 Subject: Move ALSOFT_EAX definition to config.h And disable it by default for non-Windows targets --- alc/alc.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'alc/alc.cpp') diff --git a/alc/alc.cpp b/alc/alc.cpp index b9f322a3..4effcc67 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -155,7 +155,7 @@ #include "backends/wave.h" #endif -#if ALSOFT_EAX +#ifdef ALSOFT_EAX #include "al/eax_globals.h" #include "al/eax_x_ram.h" #endif // ALSOFT_EAX @@ -881,7 +881,7 @@ constexpr struct { DECL(AL_STOP_SOURCES_ON_DISCONNECT_SOFT), -#if ALSOFT_EAX +#ifdef ALSOFT_EAX DECL(AL_EAX_RAM_SIZE), DECL(AL_EAX_RAM_FREE), DECL(AL_STORAGE_AUTOMATIC), @@ -1258,7 +1258,7 @@ void alc_initconfig(void) if(defrevopt || (defrevopt=ConfigValueStr(nullptr, nullptr, "default-reverb"))) LoadReverbPreset(defrevopt->c_str(), &ALCcontext::sDefaultEffect); -#if ALSOFT_EAX +#ifdef ALSOFT_EAX { constexpr auto eax_block_name = "eax"; @@ -3223,7 +3223,7 @@ START_API_FUNC device->AuxiliaryEffectSlotMax = 64; device->NumAuxSends = DEFAULT_SENDS; -#if ALSOFT_EAX +#ifdef ALSOFT_EAX if (eax_g_is_enabled) { device->NumAuxSends = EAX_MAX_FXSLOTS; -- cgit v1.2.3