diff options
author | Chris Robinson <[email protected]> | 2023-01-04 23:18:17 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-01-04 23:18:17 -0800 |
commit | 58a18ab3c0126337d17939b5060fce28a39b8cf1 (patch) | |
tree | 37b4abf4525f955a18165ec059890738a56db661 /core/mixer.h | |
parent | 078b50e0ed6a0b89aa2e1f84bbbebbf24b885a4e (diff) |
Add a simple wrapper to call the mixer function
Diffstat (limited to 'core/mixer.h')
-rw-r--r-- | core/mixer.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/core/mixer.h b/core/mixer.h index 66bcb170..9ed1f5b3 100644 --- a/core/mixer.h +++ b/core/mixer.h @@ -13,11 +13,17 @@ struct MixParams; -using MixerFunc = void(*)(const al::span<const float> InSamples, +/* Mixer functions that handle one input and multiple output channels. */ +using MixerOutFunc = void(*)(const al::span<const float> InSamples, const al::span<FloatBufferLine> OutBuffer, float *CurrentGains, const float *TargetGains, const size_t Counter, const size_t OutPos); -extern MixerFunc MixSamples; +extern MixerOutFunc MixSamplesOut; +inline void MixSamples(const al::span<const float> InSamples, + const al::span<FloatBufferLine> OutBuffer, float *CurrentGains, const float *TargetGains, + const size_t Counter, const size_t OutPos) +{ MixSamplesOut(InSamples, OutBuffer, CurrentGains, TargetGains, Counter, OutPos); } + /** |