aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects
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
parent410a5ca62129f03ba7cfc091fa63fc451cdfc24f (diff)
Make some more channel counts unsigned
Diffstat (limited to 'Alc/effects')
-rw-r--r--Alc/effects/autowah.cpp2
-rw-r--r--Alc/effects/base.h2
-rw-r--r--Alc/effects/compressor.cpp2
-rw-r--r--Alc/effects/equalizer.cpp4
-rw-r--r--Alc/effects/modulator.cpp4
5 files changed, 7 insertions, 7 deletions
diff --git a/Alc/effects/autowah.cpp b/Alc/effects/autowah.cpp
index 90531229..ab885460 100644
--- a/Alc/effects/autowah.cpp
+++ b/Alc/effects/autowah.cpp
@@ -121,7 +121,7 @@ void ALautowahState::update(const ALCcontext *context, const ALeffectslot *slot,
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);
diff --git a/Alc/effects/base.h b/Alc/effects/base.h
index d2b33b9b..1a59078f 100644
--- a/Alc/effects/base.h
+++ b/Alc/effects/base.h
@@ -145,7 +145,7 @@ struct EffectState {
RefCount mRef{1u};
FloatBufferLine *mOutBuffer{nullptr};
- ALsizei mOutChannels{0};
+ ALuint mOutChannels{0u};
virtual ~EffectState() = default;
diff --git a/Alc/effects/compressor.cpp b/Alc/effects/compressor.cpp
index 5c0d0121..049f521b 100644
--- a/Alc/effects/compressor.cpp
+++ b/Alc/effects/compressor.cpp
@@ -80,7 +80,7 @@ void CompressorState::update(const ALCcontext* UNUSED(context), const ALeffectsl
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, mGain[i]);
diff --git a/Alc/effects/equalizer.cpp b/Alc/effects/equalizer.cpp
index d37f15ea..179dbc1b 100644
--- a/Alc/effects/equalizer.cpp
+++ b/Alc/effects/equalizer.cpp
@@ -141,7 +141,7 @@ void EqualizerState::update(const ALCcontext *context, const ALeffectslot *slot,
BiquadFilter::rcpQFromSlope(gain, 0.75f));
/* Copy the filter coefficients for the other input channels. */
- for(ALsizei i{1};i < slot->Wet.NumChannels;++i)
+ for(ALuint i{1u};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(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);
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);