diff options
author | Chris Robinson <[email protected]> | 2019-11-28 09:46:16 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-11-28 09:46:16 -0800 |
commit | 576adf06b16f6b1c88991970dce06fcabbb04f28 (patch) | |
tree | 1306e20b0f9f13b6db2eda43479764a0ac8f5a73 /alc/hrtf.h | |
parent | 925e6e979c85a1e8f36d5fb01ce3a4409e38927c (diff) |
Store HRIR coefficients using HrirArray
Diffstat (limited to 'alc/hrtf.h')
-rw-r--r-- | alc/hrtf.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -23,6 +23,9 @@ #define HRIR_LENGTH (1<<HRIR_BITS) #define HRIR_MASK (HRIR_LENGTH-1) +using float2 = std::array<float,2>; +using HrirArray = std::array<float2,HRIR_LENGTH>; + struct HrtfStore { RefCount mRef; @@ -45,7 +48,7 @@ struct HrtfStore { ALushort irOffset; }; Elevation *elev; - const ALfloat (*coeffs)[2]; + const HrirArray *coeffs; const ALubyte (*delays)[2]; void IncRef(); @@ -55,9 +58,6 @@ struct HrtfStore { }; -using float2 = std::array<float,2>; -using HrirArray = std::array<float2,HRIR_LENGTH>; - struct HrtfState { alignas(16) std::array<ALfloat,HRTF_HISTORY_LENGTH> History; }; |