aboutsummaryrefslogtreecommitdiffstats
path: root/al/effects/equalizer.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-01-30 05:42:44 -0800
committerChris Robinson <[email protected]>2022-01-30 05:42:44 -0800
commit816bd8ab309dc0fe9afefcc5e3f2c294d3dc60a5 (patch)
tree75cf4b9c90bb3aa8d461b6a7dc417329bd2175d3 /al/effects/equalizer.cpp
parentc9d59ebc4a2c3566d34759a901be639b5f932e30 (diff)
Move ALSOFT_EAX definition to config.h
And disable it by default for non-Windows targets
Diffstat (limited to 'al/effects/equalizer.cpp')
-rw-r--r--al/effects/equalizer.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/al/effects/equalizer.cpp b/al/effects/equalizer.cpp
index c052db3e..4ff26178 100644
--- a/al/effects/equalizer.cpp
+++ b/al/effects/equalizer.cpp
@@ -7,7 +7,7 @@
#include "alc/effects/base.h"
#include "effects.h"
-#if ALSOFT_EAX
+#ifdef ALSOFT_EAX
#include "alnumeric.h"
#include "al/eax_exception.h"
@@ -175,10 +175,8 @@ DEFINE_ALEFFECT_VTABLE(Equalizer);
const EffectProps EqualizerEffectProps{genDefaultProps()};
-#if ALSOFT_EAX
-namespace
-{
-
+#ifdef ALSOFT_EAX
+namespace {
using EaxEqualizerEffectDirtyFlagsValue = std::uint_least16_t;
@@ -1021,15 +1019,12 @@ bool EaxEqualizerEffect::set(
return false;
}
-
} // namespace
-
EaxEffectUPtr eax_create_eax_equalizer_effect(
EffectProps& al_effect_props)
{
return std::make_unique<EaxEqualizerEffect>(al_effect_props);
}
-
#endif // ALSOFT_EAX