From ba449d2b087f791ad84394c22b4d4ec528da390b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 29 May 2019 17:32:16 -0700 Subject: Pass a span to MixDirectHrtf instead of a pointer+size --- OpenAL32/Include/alu.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'OpenAL32/Include') 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 InSamples, float2 *AccumSamples, DirectHrtfState *State, + const ALsizei BufferSize); #define GAIN_MIX_MAX (1000.0f) /* +60dB */ -- cgit v1.2.3