aboutsummaryrefslogtreecommitdiffstats
path: root/alc/mixvoice.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-13 04:15:05 -0700
committerChris Robinson <[email protected]>2019-09-13 04:15:05 -0700
commitdf306b55245de7a281d695046e74717e4cdd511f (patch)
treee368ce9599d4a236667771af10c5c7d0628134a3 /alc/mixvoice.cpp
parent5b763e14379e6989492a278515cdfc02a59cd568 (diff)
Make NumAuxSends unsigned
Diffstat (limited to 'alc/mixvoice.cpp')
-rw-r--r--alc/mixvoice.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/alc/mixvoice.cpp b/alc/mixvoice.cpp
index 3c621934..9d7dead4 100644
--- a/alc/mixvoice.cpp
+++ b/alc/mixvoice.cpp
@@ -495,10 +495,9 @@ void ALvoice::mix(State vstate, ALCcontext *Context, const ALuint SamplesToDo)
ASSUME(increment > 0);
ALCdevice *Device{Context->mDevice.get()};
- const ALsizei NumSends{Device->NumAuxSends};
+ const ALuint NumSends{Device->NumAuxSends};
const ALsizei IrSize{Device->mHrtf ? Device->mHrtf->irSize : 0};
- ASSUME(NumSends >= 0);
ASSUME(IrSize >= 0);
ResamplerFunc Resample{(increment == FRACTIONONE && DataPosFrac == 0) ?
@@ -517,7 +516,7 @@ void ALvoice::mix(State vstate, ALCcontext *Context, const ALuint SamplesToDo)
std::begin(parms.Gains.Current));
else
parms.Hrtf.Old = parms.Hrtf.Target;
- for(ALsizei send{0};send < NumSends;++send)
+ for(ALuint send{0};send < NumSends;++send)
{
if(mSend[send].Buffer.empty())
continue;
@@ -785,7 +784,7 @@ void ALvoice::mix(State vstate, ALCcontext *Context, const ALuint SamplesToDo)
}
}
- for(ALsizei send{0};send < NumSends;++send)
+ for(ALuint send{0};send < NumSends;++send)
{
if(mSend[send].Buffer.empty())
continue;