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 --- alc/hrtf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alc/hrtf.cpp') diff --git a/alc/hrtf.cpp b/alc/hrtf.cpp index 60d0aead..e791e7af 100644 --- a/alc/hrtf.cpp +++ b/alc/hrtf.cpp @@ -285,7 +285,7 @@ void DirectHrtfState::build(const HrtfStore *Hrtf, const uint irSize, { using double2 = std::array; struct ImpulseResponse { - const HrirArray &hrir; + const ConstHrirSpan hrir; uint ldelay, rdelay; }; @@ -341,7 +341,7 @@ void DirectHrtfState::build(const HrtfStore *Hrtf, const uint irSize, auto tmpres = al::vector>(mChannels.size()); for(size_t c{0u};c < AmbiPoints.size();++c) { - const HrirArray &hrir{impres[c].hrir}; + const ConstHrirSpan hrir{impres[c].hrir}; const uint ldelay{hrir_delay_round(impres[c].ldelay - min_delay)}; const uint rdelay{hrir_delay_round(impres[c].rdelay - min_delay)}; -- cgit v1.2.3