From 3a6e741e900bbfbee99906c780402455637c223a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 22 Mar 2019 19:25:55 -0700 Subject: Use MixParams for the wet buffers --- Alc/effects/modulator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/effects/modulator.cpp') diff --git a/Alc/effects/modulator.cpp b/Alc/effects/modulator.cpp index 46fe32a3..c2095192 100644 --- a/Alc/effects/modulator.cpp +++ b/Alc/effects/modulator.cpp @@ -129,12 +129,12 @@ void ModulatorState::update(const ALCcontext *context, const ALeffectslot *slot, /* Bandwidth value is constant in octaves. */ mChans[0].Filter.setParams(BiquadType::HighPass, 1.0f, f0norm, calc_rcpQ_from_bandwidth(f0norm, 0.75f)); - for(size_t i{1u};i < slot->WetBuffer.size();++i) + for(ALsizei i{1};i < slot->Wet.NumChannels;++i) mChans[i].Filter.copyParamsFrom(mChans[0].Filter); mOutBuffer = target.Main->Buffer; mOutChannels = target.Main->NumChannels; - for(size_t i{0u};i < slot->WetBuffer.size();++i) + for(ALsizei i{0};i < slot->Wet.NumChannels;++i) { auto coeffs = GetAmbiIdentityRow(i); ComputePanGains(target.Main, coeffs.data(), slot->Params.Gain, mChans[i].TargetGains); -- cgit v1.2.3