aboutsummaryrefslogtreecommitdiffstats
path: root/alc/effects/dedicated.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-01-16 21:45:03 -0800
committerChris Robinson <[email protected]>2023-01-16 21:45:03 -0800
commit3d00147b99d4996f322ff231a7e0e7d9aff86f60 (patch)
treeaa6dde806a0d279fad83d77dbbf4f5f8356c6ce4 /alc/effects/dedicated.cpp
parent8e9833c7a6dfe53b570d5a021888f2a5397b4796 (diff)
Change a couple macros to constexpr variables
Diffstat (limited to 'alc/effects/dedicated.cpp')
-rw-r--r--alc/effects/dedicated.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/alc/effects/dedicated.cpp b/alc/effects/dedicated.cpp
index a1c85ecd..e666df9f 100644
--- a/alc/effects/dedicated.cpp
+++ b/alc/effects/dedicated.cpp
@@ -74,8 +74,8 @@ void DedicatedState::update(const ContextBase*, const EffectSlot *slot,
if(slot->EffectType == EffectSlotType::DedicatedLFE)
{
- const uint idx{target.RealOut ? target.RealOut->ChannelIndex[LFE] : INVALID_CHANNEL_INDEX};
- if(idx != INVALID_CHANNEL_INDEX)
+ const uint idx{target.RealOut ? target.RealOut->ChannelIndex[LFE] : InvalidChannelIndex};
+ if(idx != InvalidChannelIndex)
{
mOutTarget = target.RealOut->Buffer;
mTargetGains[idx] = Gain;
@@ -86,8 +86,8 @@ void DedicatedState::update(const ContextBase*, const EffectSlot *slot,
/* Dialog goes to the front-center speaker if it exists, otherwise it
* plays from the front-center location. */
const uint idx{target.RealOut ? target.RealOut->ChannelIndex[FrontCenter]
- : INVALID_CHANNEL_INDEX};
- if(idx != INVALID_CHANNEL_INDEX)
+ : InvalidChannelIndex};
+ if(idx != InvalidChannelIndex)
{
mOutTarget = target.RealOut->Buffer;
mTargetGains[idx] = Gain;