aboutsummaryrefslogtreecommitdiffstats
path: root/alc/effects/reverb.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-04-08 10:15:43 -0700
committerChris Robinson <[email protected]>2020-04-08 10:15:43 -0700
commitd67cba99bd97d42e7e52c6dfd7a08c288b1539c0 (patch)
tree014425832a37173da8d9c3b2377526ce41d58d36 /alc/effects/reverb.cpp
parent8a5153ce0dee072c283b04ff5a61faa764f81743 (diff)
Clean up some more unnecessary uses of AL types
Diffstat (limited to 'alc/effects/reverb.cpp')
-rw-r--r--alc/effects/reverb.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/effects/reverb.cpp b/alc/effects/reverb.cpp
index c97818f2..036d6f23 100644
--- a/alc/effects/reverb.cpp
+++ b/alc/effects/reverb.cpp
@@ -710,11 +710,11 @@ inline float CalcDensityGain(const float a)
}
/* Calculate the scattering matrix coefficients given a diffusion factor. */
-inline ALvoid CalcMatrixCoeffs(const float diffusion, float *x, float *y)
+inline void CalcMatrixCoeffs(const float diffusion, float *x, float *y)
{
/* The matrix is of order 4, so n is sqrt(4 - 1). */
- float n{std::sqrt(3.0f)};
- float t{diffusion * std::atan(n)};
+ const float n{std::sqrt(3.0f)};
+ const float t{diffusion * std::atan(n)};
/* Calculate the first mixing matrix coefficient. */
*x = std::cos(t);