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 /alc/hrtf.cpp | |
parent | 72c4dd4d10659fb0e3fa973e68f399c6b34d4b99 (diff) |
Use spans instead of references to arrays
Diffstat (limited to 'alc/hrtf.cpp')
-rw-r--r-- | alc/hrtf.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<double,2>; 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<std::array<double2,HrirLength>>(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)}; |