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/fshifter.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/fshifter.cpp')
-rw-r--r-- | al/effects/fshifter.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/al/effects/fshifter.cpp b/al/effects/fshifter.cpp index aa4ddadb..74ef52d9 100644 --- a/al/effects/fshifter.cpp +++ b/al/effects/fshifter.cpp @@ -10,7 +10,7 @@ #include "aloptional.h" #include "effects.h" -#if ALSOFT_EAX +#ifdef ALSOFT_EAX #include <cassert> #include "alnumeric.h" @@ -138,10 +138,8 @@ DEFINE_ALEFFECT_VTABLE(Fshifter); const EffectProps FshifterEffectProps{genDefaultProps()}; -#if ALSOFT_EAX -namespace -{ - +#ifdef ALSOFT_EAX +namespace { using EaxFrequencyShifterEffectDirtyFlagsValue = std::uint_least8_t; @@ -530,15 +528,12 @@ bool EaxFrequencyShifterEffect::set( return false; } - } // namespace - EaxEffectUPtr eax_create_eax_frequency_shifter_effect( EffectProps& al_effect_props) { return std::make_unique<EaxFrequencyShifterEffect>(al_effect_props); } - #endif // ALSOFT_EAX |