diff options
author | Chris Robinson <[email protected]> | 2019-06-05 19:58:58 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-06-05 19:58:58 -0700 |
commit | f9da06fc6a265e3ab2f548a9533b222e7a183637 (patch) | |
tree | d430e2bdf5d4a20f8f4a29efda8901d861417d01 /Alc/effects/dedicated.cpp | |
parent | 1ce310c6d1719c6f71664385e136b5510602ac21 (diff) |
Use a span for the effect state's output target
Diffstat (limited to 'Alc/effects/dedicated.cpp')
-rw-r--r-- | Alc/effects/dedicated.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Alc/effects/dedicated.cpp b/Alc/effects/dedicated.cpp index 06d187fc..eb4076b2 100644 --- a/Alc/effects/dedicated.cpp +++ b/Alc/effects/dedicated.cpp @@ -62,8 +62,7 @@ void DedicatedState::update(const ALCcontext* UNUSED(context), const ALeffectslo const int idx{!target.RealOut ? -1 : GetChannelIdxByName(*target.RealOut, LFE)}; if(idx != -1) { - mOutBuffer = target.RealOut->Buffer; - mOutChannels = target.RealOut->NumChannels; + mOutTarget = {target.RealOut->Buffer, target.RealOut->NumChannels}; mTargetGains[idx] = Gain; } } @@ -74,8 +73,7 @@ void DedicatedState::update(const ALCcontext* UNUSED(context), const ALeffectslo const int idx{!target.RealOut ? -1 : GetChannelIdxByName(*target.RealOut, FrontCenter)}; if(idx != -1) { - mOutBuffer = target.RealOut->Buffer; - mOutChannels = target.RealOut->NumChannels; + mOutTarget = {target.RealOut->Buffer, target.RealOut->NumChannels}; mTargetGains[idx] = Gain; } else @@ -83,8 +81,7 @@ void DedicatedState::update(const ALCcontext* UNUSED(context), const ALeffectslo ALfloat coeffs[MAX_AMBI_CHANNELS]; CalcDirectionCoeffs({0.0f, 0.0f, -1.0f}, 0.0f, coeffs); - mOutBuffer = target.Main->Buffer; - mOutChannels = target.Main->NumChannels; + mOutTarget = {target.Main->Buffer, target.Main->NumChannels}; ComputePanGains(target.Main, coeffs, Gain, mTargetGains); } } |