From 12e6dc0cced98d8d4379dbdaa922381920d32df2 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 25 Aug 2019 21:30:32 -0700 Subject: Fix a function's sample count type --- alc/uhjfilter.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'alc/uhjfilter.cpp') diff --git a/alc/uhjfilter.cpp b/alc/uhjfilter.cpp index 222f519a..7d01a91f 100644 --- a/alc/uhjfilter.cpp +++ b/alc/uhjfilter.cpp @@ -26,13 +26,14 @@ constexpr ALfloat Filter2CoeffSqr[4] = { 0.161758498368f, 0.733028932341f, 0.945349700329f, 0.990599156685f }; -void allpass_process(AllPassState *state, ALfloat *dst, const ALfloat *src, const ALfloat aa, ALsizei todo) +void allpass_process(AllPassState *state, ALfloat *dst, const ALfloat *src, const ALfloat aa, + const size_t todo) { ALfloat z1{state->z[0]}; ALfloat z2{state->z[1]}; - auto proc_sample = [aa,&z1,&z2](ALfloat input) noexcept -> ALfloat + auto proc_sample = [aa,&z1,&z2](const ALfloat input) noexcept -> ALfloat { - ALfloat output = input*aa + z1; + const ALfloat output{input*aa + z1}; z1 = z2; z2 = output*aa - input; return output; }; -- cgit v1.2.3