From 31a94ca564f8de584f338da3ca7221060683a927 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 11 Feb 2023 04:49:30 -0800 Subject: Always write samples to the destination when resampling --- core/mixer/defs.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/mixer/defs.h') diff --git a/core/mixer/defs.h b/core/mixer/defs.h index 74a474fe..e02eb0b9 100644 --- a/core/mixer/defs.h +++ b/core/mixer/defs.h @@ -64,15 +64,15 @@ union InterpState { BsincState bsinc; }; -using ResamplerFunc = float*(*)(const InterpState *state, float *RESTRICT src, uint frac, - uint increment, const al::span dst); +using ResamplerFunc = void(*)(const InterpState *state, const float *RESTRICT src, uint frac, + const uint increment, const al::span dst); ResamplerFunc PrepareResampler(Resampler resampler, uint increment, InterpState *state); template -float *Resample_(const InterpState *state, float *RESTRICT src, uint frac, uint increment, - const al::span dst); +void Resample_(const InterpState *state, const float *RESTRICT src, uint frac, + const uint increment, const al::span dst); template void Mix_(const al::span InSamples, const al::span OutBuffer, -- cgit v1.2.3