From 3fe5ef272f436db82beeeee3ad123029e4d219b6 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 4 Jul 2019 15:02:12 -0700 Subject: Use a span for MixParams --- Alc/effects/autowah.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/effects/autowah.cpp') 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); -- cgit v1.2.3