From e11cae32067a7ab84b51e5483470020251c943d5 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 13 Jan 2023 13:35:21 -0800 Subject: Ensure the mixer helpers are properly inlined --- core/mixer/mixer_c.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/mixer/mixer_c.cpp') diff --git a/core/mixer/mixer_c.cpp b/core/mixer/mixer_c.cpp index 8137d866..9ac2a9c4 100644 --- a/core/mixer/mixer_c.cpp +++ b/core/mixer/mixer_c.cpp @@ -96,8 +96,9 @@ inline void ApplyCoeffs(float2 *RESTRICT Values, const size_t IrSize, const Cons } } -inline void MixLine(const al::span InSamples, float *RESTRICT dst, float &CurrentGain, - const float TargetGain, const float delta, const size_t min_len, size_t Counter) +force_inline void MixLine(const al::span InSamples, float *RESTRICT dst, + float &CurrentGain, const float TargetGain, const float delta, const size_t min_len, + size_t Counter) { float gain{CurrentGain}; const float step{(TargetGain-gain) * delta}; -- cgit v1.2.3