diff options
author | Chris Robinson <[email protected]> | 2022-08-01 13:06:14 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-08-02 18:26:49 -0700 |
commit | a1faa5d311e6d4f9daad601e181686486a8efd90 (patch) | |
tree | 5676f2996448a1750d8ef6aebc9a3001a4c19c3d /alc/effects/dedicated.cpp | |
parent | 810821a2216ac786eac602b47c21e638a35f4ace (diff) |
Change an inline function to a class method
Diffstat (limited to 'alc/effects/dedicated.cpp')
-rw-r--r-- | alc/effects/dedicated.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/alc/effects/dedicated.cpp b/alc/effects/dedicated.cpp index 671eb5ec..434dfc69 100644 --- a/alc/effects/dedicated.cpp +++ b/alc/effects/dedicated.cpp @@ -70,8 +70,7 @@ void DedicatedState::update(const ContextBase*, const EffectSlot *slot, if(slot->EffectType == EffectSlotType::DedicatedLFE) { - const uint idx{!target.RealOut ? INVALID_CHANNEL_INDEX : - GetChannelIdxByName(*target.RealOut, LFE)}; + const uint idx{target.RealOut ? target.RealOut->ChannelIndex[LFE] : INVALID_CHANNEL_INDEX}; if(idx != INVALID_CHANNEL_INDEX) { mOutTarget = target.RealOut->Buffer; @@ -82,8 +81,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 ? INVALID_CHANNEL_INDEX : - GetChannelIdxByName(*target.RealOut, FrontCenter)}; + const uint idx{target.RealOut ? target.RealOut->ChannelIndex[FrontCenter] + : INVALID_CHANNEL_INDEX}; if(idx != INVALID_CHANNEL_INDEX) { mOutTarget = target.RealOut->Buffer; |