From 54719de13235f6ea216e8d200661027c047bd283 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 26 Dec 2020 09:21:30 -0800 Subject: Avoid AL enums for the EffectSlot type --- alc/effects/dedicated.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alc/effects/dedicated.cpp') diff --git a/alc/effects/dedicated.cpp b/alc/effects/dedicated.cpp index 816b6021..e71f75f0 100644 --- a/alc/effects/dedicated.cpp +++ b/alc/effects/dedicated.cpp @@ -58,7 +58,7 @@ void DedicatedState::update(const ALCcontext*, const EffectSlot *slot, const float Gain{slot->Gain * props->Dedicated.Gain}; - if(slot->EffectType == AL_EFFECT_DEDICATED_LOW_FREQUENCY_EFFECT) + if(slot->EffectType == EffectSlotType::DedicatedLFE) { const uint idx{!target.RealOut ? INVALID_CHANNEL_INDEX : GetChannelIdxByName(*target.RealOut, LFE)}; @@ -68,7 +68,7 @@ void DedicatedState::update(const ALCcontext*, const EffectSlot *slot, mTargetGains[idx] = Gain; } } - else if(slot->EffectType == AL_EFFECT_DEDICATED_DIALOGUE) + else if(slot->EffectType == EffectSlotType::DedicatedDialog) { /* Dialog goes to the front-center speaker if it exists, otherwise it * plays from the front-center location. */ -- cgit v1.2.3