diff options
author | Chris Robinson <[email protected]> | 2022-01-30 05:42:44 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-01-30 05:42:44 -0800 |
commit | 816bd8ab309dc0fe9afefcc5e3f2c294d3dc60a5 (patch) | |
tree | 75cf4b9c90bb3aa8d461b6a7dc417329bd2175d3 /al/effects/chorus.cpp | |
parent | c9d59ebc4a2c3566d34759a901be639b5f932e30 (diff) |
Move ALSOFT_EAX definition to config.h
And disable it by default for non-Windows targets
Diffstat (limited to 'al/effects/chorus.cpp')
-rw-r--r-- | al/effects/chorus.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/al/effects/chorus.cpp b/al/effects/chorus.cpp index ed994fbb..37651406 100644 --- a/al/effects/chorus.cpp +++ b/al/effects/chorus.cpp @@ -11,7 +11,7 @@ #include "core/logging.h" #include "effects.h" -#if ALSOFT_EAX +#ifdef ALSOFT_EAX #include <cassert> #include "alnumeric.h" @@ -290,10 +290,8 @@ DEFINE_ALEFFECT_VTABLE(Flanger); const EffectProps FlangerEffectProps{genDefaultFlangerProps()}; -#if ALSOFT_EAX -namespace -{ - +#ifdef ALSOFT_EAX +namespace { void eax_set_efx_waveform( ALenum waveform, @@ -1507,15 +1505,12 @@ bool EaxFlangerEffect::set( return false; } - } // namespace - EaxEffectUPtr eax_create_eax_flanger_effect( EffectProps& al_effect_props) { return std::make_unique<EaxFlangerEffect>(al_effect_props); } - #endif // ALSOFT_EAX |