aboutsummaryrefslogtreecommitdiffstats
path: root/core/mixer/hrtfdefs.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-02-06 14:39:30 -0800
committerChris Robinson <[email protected]>2021-02-06 14:39:30 -0800
commitdfe627133c1d018748bd66ad1f8c72945448a34a (patch)
treee1b13de1178629836538ccec8e573dc0b67227cc /core/mixer/hrtfdefs.h
parent72c4dd4d10659fb0e3fa973e68f399c6b34d4b99 (diff)
Use spans instead of references to arrays
Diffstat (limited to 'core/mixer/hrtfdefs.h')
-rw-r--r--core/mixer/hrtfdefs.h5
1 files changed, 4 insertions, 1 deletions
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 <array>
+#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<float2,HrirLength>;
+using HrirSpan = al::span<float2,HrirLength>;
+using ConstHrirSpan = al::span<const float2,HrirLength>;
struct MixHrtfFilter {
- const HrirArray *Coeffs;
+ const ConstHrirSpan Coeffs;
uint2 Delay;
float Gain;
float GainStep;