aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-08-25 21:30:32 -0700
committerChris Robinson <[email protected]>2019-08-25 21:30:32 -0700
commit12e6dc0cced98d8d4379dbdaa922381920d32df2 (patch)
tree5948e23cd5da8ab0fda7c774b47a65f95edf20e8
parent4e72d7b3eccfb13055c55d2ccac8bf0db3be9ecb (diff)
Fix a function's sample count type
-rw-r--r--alc/uhjfilter.cpp7
1 files changed, 4 insertions, 3 deletions
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;
};