aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/autowah.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-07-04 15:02:12 -0700
committerChris Robinson <[email protected]>2019-07-04 15:02:12 -0700
commit3fe5ef272f436db82beeeee3ad123029e4d219b6 (patch)
treed7f79f3e99ec15bc8474050c922f227e888f24bd /Alc/effects/autowah.cpp
parent729ffe02d6ab05dc8c62e8332ef1878bbfbdf756 (diff)
Use a span for MixParams
Diffstat (limited to 'Alc/effects/autowah.cpp')
-rw-r--r--Alc/effects/autowah.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/effects/autowah.cpp b/Alc/effects/autowah.cpp
index 90af6134..f1160804 100644
--- a/Alc/effects/autowah.cpp
+++ b/Alc/effects/autowah.cpp
@@ -119,8 +119,8 @@ void ALautowahState::update(const ALCcontext *context, const ALeffectslot *slot,
mFreqMinNorm = MIN_FREQ / device->Frequency;
mBandwidthNorm = (MAX_FREQ-MIN_FREQ) / device->Frequency;
- mOutTarget = {target.Main->Buffer, target.Main->NumChannels};
- for(ALuint i{0u};i < slot->Wet.NumChannels;++i)
+ mOutTarget = target.Main->Buffer;
+ for(size_t i{0u};i < slot->Wet.Buffer.size();++i)
{
auto coeffs = GetAmbiIdentityRow(i);
ComputePanGains(target.Main, coeffs.data(), slot->Params.Gain, mChans[i].TargetGains);