From dfe627133c1d018748bd66ad1f8c72945448a34a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 6 Feb 2021 14:39:30 -0800 Subject: Use spans instead of references to arrays --- core/mixer/hrtfdefs.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'core/mixer/hrtfdefs.h') diff --git a/core/mixer/hrtfdefs.h b/core/mixer/hrtfdefs.h index 89a9bb8d..7046a31e 100644 --- a/core/mixer/hrtfdefs.h +++ b/core/mixer/hrtfdefs.h @@ -3,6 +3,7 @@ #include +#include "alspan.h" #include "core/ambidefs.h" #include "core/bufferline.h" #include "core/filters/splitter.h" @@ -28,9 +29,11 @@ constexpr uint MinIrLength{8}; constexpr uint HrtfDirectDelay{256}; using HrirArray = std::array; +using HrirSpan = al::span; +using ConstHrirSpan = al::span; struct MixHrtfFilter { - const HrirArray *Coeffs; + const ConstHrirSpan Coeffs; uint2 Delay; float Gain; float GainStep; -- cgit v1.2.3