diff options
author | Chris Robinson <[email protected]> | 2020-12-21 21:11:25 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-12-24 22:49:55 -0800 |
commit | 0d3b041aa25cefb16b6ef2e5d0ad0a2f93986a92 (patch) | |
tree | f8988a7f43dea7bf4df48c4e6b2ca7e5f431da46 /alc/effects/dedicated.cpp | |
parent | eedc42890fa1358a6639051a39f7e73f8d4d3b07 (diff) |
Avoid AL types and enums in the effect processors
Diffstat (limited to 'alc/effects/dedicated.cpp')
-rw-r--r-- | alc/effects/dedicated.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/effects/dedicated.cpp b/alc/effects/dedicated.cpp index 8b9636ba..816b6021 100644 --- a/alc/effects/dedicated.cpp +++ b/alc/effects/dedicated.cpp @@ -24,10 +24,10 @@ #include <cmath> #include <algorithm> -#include "al/auxeffectslot.h" #include "alcmain.h" #include "alcontext.h" #include "alu.h" +#include "effectslot.h" namespace { @@ -60,7 +60,7 @@ void DedicatedState::update(const ALCcontext*, const EffectSlot *slot, if(slot->EffectType == AL_EFFECT_DEDICATED_LOW_FREQUENCY_EFFECT) { - const ALuint idx{!target.RealOut ? INVALID_CHANNEL_INDEX : + const uint idx{!target.RealOut ? INVALID_CHANNEL_INDEX : GetChannelIdxByName(*target.RealOut, LFE)}; if(idx != INVALID_CHANNEL_INDEX) { @@ -72,7 +72,7 @@ void DedicatedState::update(const ALCcontext*, const EffectSlot *slot, { /* Dialog goes to the front-center speaker if it exists, otherwise it * plays from the front-center location. */ - const ALuint idx{!target.RealOut ? INVALID_CHANNEL_INDEX : + const uint idx{!target.RealOut ? INVALID_CHANNEL_INDEX : GetChannelIdxByName(*target.RealOut, FrontCenter)}; if(idx != INVALID_CHANNEL_INDEX) { |