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 --- al/effects/autowah.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'al/effects/autowah.cpp') diff --git a/al/effects/autowah.cpp b/al/effects/autowah.cpp index bdd1bc09..6dbafca3 100644 --- a/al/effects/autowah.cpp +++ b/al/effects/autowah.cpp @@ -11,7 +11,7 @@ #include "alc/effects/base.h" #include "effects.h" -#if ALSOFT_EAX +#ifdef ALSOFT_EAX #include "alnumeric.h" #include "al/eax_exception.h" @@ -116,10 +116,8 @@ DEFINE_ALEFFECT_VTABLE(Autowah); const EffectProps AutowahEffectProps{genDefaultProps()}; -#if ALSOFT_EAX -namespace -{ - +#ifdef ALSOFT_EAX +namespace { using EaxAutoWahEffectDirtyFlagsValue = std::uint_least8_t; @@ -566,15 +564,12 @@ bool EaxAutoWahEffect::set( return false; } - } // namespace - EaxEffectUPtr eax_create_eax_auto_wah_effect( EffectProps& al_effect_props) { return std::make_unique<::EaxAutoWahEffect>(al_effect_props); } - #endif // ALSOFT_EAX -- cgit v1.2.3