From 1bb93f4fc213e4a93aedd4937ef2a8fa0d160b25 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 3 Oct 2019 04:22:39 -0700 Subject: 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). --- alc/mixer/mixer_c.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alc/mixer/mixer_c.cpp') 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 +using SamplerT = float(&)(const InterpState&, const float*RESTRICT, const ALuint); +template const float *DoResample(const InterpState *state, const float *RESTRICT src, ALuint frac, ALuint increment, const al::span dst) { -- cgit v1.2.3