diff options
author | Chris Robinson <[email protected]> | 2021-02-06 14:39:30 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-02-06 14:39:30 -0800 |
commit | dfe627133c1d018748bd66ad1f8c72945448a34a (patch) | |
tree | e1b13de1178629836538ccec8e573dc0b67227cc /core/mixer/hrtfdefs.h | |
parent | 72c4dd4d10659fb0e3fa973e68f399c6b34d4b99 (diff) |
Use spans instead of references to arrays
Diffstat (limited to 'core/mixer/hrtfdefs.h')
-rw-r--r-- | core/mixer/hrtfdefs.h | 5 |
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; |