aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/chorus.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-06-05 19:58:58 -0700
committerChris Robinson <[email protected]>2019-06-05 19:58:58 -0700
commitf9da06fc6a265e3ab2f548a9533b222e7a183637 (patch)
treed430e2bdf5d4a20f8f4a29efda8901d861417d01 /Alc/effects/chorus.cpp
parent1ce310c6d1719c6f71664385e136b5510602ac21 (diff)
Use a span for the effect state's output target
Diffstat (limited to 'Alc/effects/chorus.cpp')
-rw-r--r--Alc/effects/chorus.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/effects/chorus.cpp b/Alc/effects/chorus.cpp
index 9226c747..b77c3439 100644
--- a/Alc/effects/chorus.cpp
+++ b/Alc/effects/chorus.cpp
@@ -159,8 +159,7 @@ void ChorusState::update(const ALCcontext *Context, const ALeffectslot *Slot, co
CalcDirectionCoeffs({-1.0f, 0.0f, 0.0f}, 0.0f, coeffs[0]);
CalcDirectionCoeffs({ 1.0f, 0.0f, 0.0f}, 0.0f, coeffs[1]);
- mOutBuffer = target.Main->Buffer;
- mOutChannels = target.Main->NumChannels;
+ mOutTarget = {target.Main->Buffer, target.Main->NumChannels};
ComputePanGains(target.Main, coeffs[0], Slot->Params.Gain, mGains[0].Target);
ComputePanGains(target.Main, coeffs[1], Slot->Params.Gain, mGains[1].Target);