diff options
author | Chris Robinson <[email protected]> | 2018-12-20 13:26:39 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-20 13:26:39 -0800 |
commit | 7744e4ff72def926a26feca391170d25df39c469 (patch) | |
tree | c7e92ed0daab3bd55944d7042c43ae3f667d9b7b /Alc/effects/dedicated.cpp | |
parent | 9fde260df9237cd99967a816332be31ce1524770 (diff) |
Pass RealMixParams by reference instead of pointer
Diffstat (limited to 'Alc/effects/dedicated.cpp')
-rw-r--r-- | Alc/effects/dedicated.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/effects/dedicated.cpp b/Alc/effects/dedicated.cpp index 491b57ec..c0af33e1 100644 --- a/Alc/effects/dedicated.cpp +++ b/Alc/effects/dedicated.cpp @@ -60,7 +60,7 @@ void ALdedicatedState::update(const ALCcontext *context, const ALeffectslot *slo if(slot->Params.EffectType == AL_EFFECT_DEDICATED_LOW_FREQUENCY_EFFECT) { int idx; - if((idx=GetChannelIdxByName(&device->RealOut, LFE)) != -1) + if((idx=GetChannelIdxByName(device->RealOut, LFE)) != -1) { mOutBuffer = device->RealOut.Buffer; mOutChannels = device->RealOut.NumChannels; @@ -71,7 +71,7 @@ void ALdedicatedState::update(const ALCcontext *context, const ALeffectslot *slo { /* Dialog goes to the front-center speaker if it exists, otherwise it * plays from the front-center location. */ - int idx{GetChannelIdxByName(&device->RealOut, FrontCenter)}; + int idx{GetChannelIdxByName(device->RealOut, FrontCenter)}; if(idx != -1) { mOutBuffer = device->RealOut.Buffer; |