aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/modulator.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-06-05 19:26:54 -0700
committerChris Robinson <[email protected]>2019-06-05 19:26:54 -0700
commit1ce310c6d1719c6f71664385e136b5510602ac21 (patch)
treece414b44426487a02953d88b7f4804d8c5ed376a /Alc/effects/modulator.cpp
parent410a5ca62129f03ba7cfc091fa63fc451cdfc24f (diff)
Make some more channel counts unsigned
Diffstat (limited to 'Alc/effects/modulator.cpp')
-rw-r--r--Alc/effects/modulator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/effects/modulator.cpp b/Alc/effects/modulator.cpp
index 60728d2e..1630654f 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,
BiquadFilter::rcpQFromBandwidth(f0norm, 0.75f));
- for(ALsizei i{1};i < slot->Wet.NumChannels;++i)
+ for(ALuint i{1u};i < slot->Wet.NumChannels;++i)
mChans[i].Filter.copyParamsFrom(mChans[0].Filter);
mOutBuffer = target.Main->Buffer;
mOutChannels = target.Main->NumChannels;
- for(ALsizei i{0};i < slot->Wet.NumChannels;++i)
+ for(ALuint i{0u};i < slot->Wet.NumChannels;++i)
{
auto coeffs = GetAmbiIdentityRow(i);
ComputePanGains(target.Main, coeffs.data(), slot->Params.Gain, mChans[i].TargetGains);