From e873165019e8ae9300be9066101554c18a29df83 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 4 Sep 2019 19:31:30 -0700 Subject: Only ASSUME values where a variable is used --- alc/mixer/hrtfbase.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'alc/mixer/hrtfbase.h') diff --git a/alc/mixer/hrtfbase.h b/alc/mixer/hrtfbase.h index 5ae83fc9..0309fe5d 100644 --- a/alc/mixer/hrtfbase.h +++ b/alc/mixer/hrtfbase.h @@ -16,7 +16,6 @@ inline void MixHrtfBase(FloatBufferLine &LeftOut, FloatBufferLine &RightOut, const ALfloat *InSamples, float2 *RESTRICT AccumSamples, const size_t OutPos, const ALsizei IrSize, MixHrtfFilter *hrtfparams, const size_t BufferSize) { - ASSUME(IrSize >= 4); ASSUME(BufferSize > 0); const HrirArray &Coeffs = *hrtfparams->Coeffs; @@ -58,7 +57,6 @@ inline void MixHrtfBlendBase(FloatBufferLine &LeftOut, FloatBufferLine &RightOut const auto &NewCoeffs = *newparams->Coeffs; const ALfloat newGainStep{newparams->GainStep}; - ASSUME(IrSize >= 4); ASSUME(BufferSize > 0); ALsizei Delay[2]{ @@ -106,7 +104,6 @@ inline void MixDirectHrtfBase(FloatBufferLine &LeftOut, FloatBufferLine &RightOu ASSUME(BufferSize > 0); const ALsizei IrSize{State->IrSize}; - ASSUME(IrSize >= 4); auto accum_iter = std::copy_n(State->Values.begin(), State->Values.size(), AccumSamples); std::fill_n(accum_iter, BufferSize, float2{}); -- cgit v1.2.3