aboutsummaryrefslogtreecommitdiffstats
path: root/alc/mixer/hrtfbase.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-04 19:31:30 -0700
committerChris Robinson <[email protected]>2019-09-04 19:31:30 -0700
commite873165019e8ae9300be9066101554c18a29df83 (patch)
tree2989d306c2189204f36d8a0e6bcf9b89e4322adf /alc/mixer/hrtfbase.h
parent8940bbd034177182bb6fc1e3953e57674e488309 (diff)
Only ASSUME values where a variable is used
Diffstat (limited to 'alc/mixer/hrtfbase.h')
-rw-r--r--alc/mixer/hrtfbase.h3
1 files changed, 0 insertions, 3 deletions
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{});