aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/equalizer.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-03-22 19:25:55 -0700
committerChris Robinson <[email protected]>2019-03-22 19:25:55 -0700
commit3a6e741e900bbfbee99906c780402455637c223a (patch)
tree814197465cfdc027ac8c7c485f0f33ef2ffea08f /Alc/effects/equalizer.cpp
parent92adfaebcecd305bc6fce43a40b41971bfe564b3 (diff)
Use MixParams for the wet buffers
Diffstat (limited to 'Alc/effects/equalizer.cpp')
-rw-r--r--Alc/effects/equalizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/effects/equalizer.cpp b/Alc/effects/equalizer.cpp
index e9c75d53..441d8764 100644
--- a/Alc/effects/equalizer.cpp
+++ b/Alc/effects/equalizer.cpp
@@ -141,7 +141,7 @@ void EqualizerState::update(const ALCcontext *context, const ALeffectslot *slot,
calc_rcpQ_from_slope(gain, 0.75f));
/* Copy the filter coefficients for the other input channels. */
- for(size_t i{1u};i < slot->WetBuffer.size();++i)
+ for(ALsizei i{1};i < slot->Wet.NumChannels;++i)
{
mChans[i].filter[0].copyParamsFrom(mChans[0].filter[0]);
mChans[i].filter[1].copyParamsFrom(mChans[0].filter[1]);
@@ -151,7 +151,7 @@ void EqualizerState::update(const ALCcontext *context, const ALeffectslot *slot,
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);