aboutsummaryrefslogtreecommitdiffstats
path: root/core/mixer/defs.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-02-11 04:49:30 -0800
committerChris Robinson <[email protected]>2023-02-11 04:49:30 -0800
commit31a94ca564f8de584f338da3ca7221060683a927 (patch)
tree3d07c0f19553a6469af26e6a9bfd3d4286b4a990 /core/mixer/defs.h
parent38a4f3a45d6416a7992644f317094d3a2e933fe6 (diff)
Always write samples to the destination when resampling
Diffstat (limited to 'core/mixer/defs.h')
-rw-r--r--core/mixer/defs.h8
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,