aboutsummaryrefslogtreecommitdiffstats
path: root/alc/mixer/mixer_c.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-10-03 04:22:39 -0700
committerChris Robinson <[email protected]>2019-10-03 04:22:39 -0700
commit1bb93f4fc213e4a93aedd4937ef2a8fa0d160b25 (patch)
tree68484db29211e8483d6175142213f430d4d834af /alc/mixer/mixer_c.cpp
parentb350ae3766f0f85183c410b4c77ac9a0eb388511 (diff)
Avoid direct function template and alias types
It's somewhat ambiguous what they mean. Sometimes acting as a pointer, other times having weird behavior. Pointer-to-function types are explicitly defined as such, whereas uses of these tend to be as references (never null and not changeable).
Diffstat (limited to 'alc/mixer/mixer_c.cpp')
-rw-r--r--alc/mixer/mixer_c.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/mixer/mixer_c.cpp b/alc/mixer/mixer_c.cpp
index ffc07acd..8d375de7 100644
--- a/alc/mixer/mixer_c.cpp
+++ b/alc/mixer/mixer_c.cpp
@@ -62,8 +62,8 @@ inline float do_fastbsinc(const InterpState &istate, const float *RESTRICT vals,
return r;
}
-using SamplerT = float(const InterpState&, const float*RESTRICT, const ALuint);
-template<SamplerT &Sampler>
+using SamplerT = float(&)(const InterpState&, const float*RESTRICT, const ALuint);
+template<SamplerT Sampler>
const float *DoResample(const InterpState *state, const float *RESTRICT src, ALuint frac,
ALuint increment, const al::span<float> dst)
{