aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer/defs.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-05-29 17:32:16 -0700
committerChris Robinson <[email protected]>2019-05-29 17:32:16 -0700
commitba449d2b087f791ad84394c22b4d4ec528da390b (patch)
treeec077a8dd6e4581ec2965e66d3801fb4cf2fc9c7 /Alc/mixer/defs.h
parentd0f0a5fdca87f74ef46ad26cb79975e1c6cda8f0 (diff)
Pass a span to MixDirectHrtf instead of a pointer+size
Diffstat (limited to 'Alc/mixer/defs.h')
-rw-r--r--Alc/mixer/defs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Alc/mixer/defs.h b/Alc/mixer/defs.h
index a6131958..3de6b01e 100644
--- a/Alc/mixer/defs.h
+++ b/Alc/mixer/defs.h
@@ -6,6 +6,8 @@
#include "alMain.h"
#include "alu.h"
+#include "alspan.h"
+
struct MixGains;
struct MixHrtfParams;
@@ -39,7 +41,7 @@ void MixHrtf_(FloatBufferLine &LeftOut, FloatBufferLine &RightOut, const ALfloat
template<typename InstTag>
void MixHrtfBlend_(FloatBufferLine &LeftOut, FloatBufferLine &RightOut, const ALfloat *InSamples, float2 *AccumSamples, const ALsizei OutPos, const ALsizei IrSize, const HrtfParams *oldparams, MixHrtfParams *newparams, const ALsizei BufferSize);
template<typename InstTag>
-void MixDirectHrtf_(FloatBufferLine &LeftOut, FloatBufferLine &RightOut, const FloatBufferLine *InSamples, float2 *AccumSamples, DirectHrtfState *State, const ALsizei NumChans, const ALsizei BufferSize);
+void MixDirectHrtf_(FloatBufferLine &LeftOut, FloatBufferLine &RightOut, const al::span<const FloatBufferLine> InSamples, float2 *AccumSamples, DirectHrtfState *State, const ALsizei BufferSize);
/* Vectorized resampler helpers */
inline void InitiatePositionArrays(ALsizei frac, ALint increment, ALsizei *RESTRICT frac_arr, ALsizei *RESTRICT pos_arr, ALsizei size)