aboutsummaryrefslogtreecommitdiffstats
path: root/alc/hrtf.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-11-28 09:46:16 -0800
committerChris Robinson <[email protected]>2019-11-28 09:46:16 -0800
commit576adf06b16f6b1c88991970dce06fcabbb04f28 (patch)
tree1306e20b0f9f13b6db2eda43479764a0ac8f5a73 /alc/hrtf.h
parent925e6e979c85a1e8f36d5fb01ce3a4409e38927c (diff)
Store HRIR coefficients using HrirArray
Diffstat (limited to 'alc/hrtf.h')
-rw-r--r--alc/hrtf.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/alc/hrtf.h b/alc/hrtf.h
index d6985142..41bee19a 100644
--- a/alc/hrtf.h
+++ b/alc/hrtf.h
@@ -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;
};