diff options
author | Chris Robinson <[email protected]> | 2023-02-11 04:49:30 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-02-11 04:49:30 -0800 |
commit | 31a94ca564f8de584f338da3ca7221060683a927 (patch) | |
tree | 3d07c0f19553a6469af26e6a9bfd3d4286b4a990 /core/mixer/defs.h | |
parent | 38a4f3a45d6416a7992644f317094d3a2e933fe6 (diff) |
Always write samples to the destination when resampling
Diffstat (limited to 'core/mixer/defs.h')
-rw-r--r-- | core/mixer/defs.h | 8 |
1 files changed, 4 insertions, 4 deletions
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<float> dst); +using ResamplerFunc = void(*)(const InterpState *state, const float *RESTRICT src, uint frac, + const uint increment, const al::span<float> dst); ResamplerFunc PrepareResampler(Resampler resampler, uint increment, InterpState *state); template<typename TypeTag, typename InstTag> -float *Resample_(const InterpState *state, float *RESTRICT src, uint frac, uint increment, - const al::span<float> dst); +void Resample_(const InterpState *state, const float *RESTRICT src, uint frac, + const uint increment, const al::span<float> dst); template<typename InstTag> void Mix_(const al::span<const float> InSamples, const al::span<FloatBufferLine> OutBuffer, |