diff options
author | Chris Robinson <[email protected]> | 2019-05-29 17:32:16 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-05-29 17:32:16 -0700 |
commit | ba449d2b087f791ad84394c22b4d4ec528da390b (patch) | |
tree | ec077a8dd6e4581ec2965e66d3801fb4cf2fc9c7 /OpenAL32/Include | |
parent | d0f0a5fdca87f74ef46ad26cb79975e1c6cda8f0 (diff) |
Pass a span to MixDirectHrtf instead of a pointer+size
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alu.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index 8653b96c..46fdb5a5 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -22,8 +22,10 @@ #include "filters/biquad.h" #include "filters/splitter.h" #include "filters/nfc.h" + #include "almalloc.h" #include "alnumeric.h" +#include "alspan.h" enum class DistanceModel; @@ -304,8 +306,8 @@ using HrtfMixerBlendFunc = void(*)(FloatBufferLine &LeftOut, FloatBufferLine &Ri const ALfloat *InSamples, float2 *AccumSamples, const ALsizei OutPos, const ALsizei IrSize, const HrtfParams *oldparams, MixHrtfParams *newparams, const ALsizei BufferSize); using HrtfDirectMixerFunc = void(*)(FloatBufferLine &LeftOut, FloatBufferLine &RightOut, - const FloatBufferLine *InSamples, float2 *RESTRICT AccumSamples, DirectHrtfState *State, - const ALsizei NumChans, const ALsizei BufferSize); + const al::span<const FloatBufferLine> InSamples, float2 *AccumSamples, DirectHrtfState *State, + const ALsizei BufferSize); #define GAIN_MIX_MAX (1000.0f) /* +60dB */ |