diff options
author | Chris Robinson <[email protected]> | 2019-05-22 10:58:18 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-05-22 11:07:12 -0700 |
commit | 67085040268003b6027317cca64ca72a18d90ce7 (patch) | |
tree | 3fd630d64247a4b86f710b1317e50b7c9a1f5fb5 /Alc/hrtf.h | |
parent | b48bab33948dae90a27b4f8ccd3eb6b20d49ba86 (diff) |
Properly reverse the HRTF field order when loading it
And combine a couple arrays into an array structure
Diffstat (limited to 'Alc/hrtf.h')
-rw-r--r-- | Alc/hrtf.h | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -29,20 +29,21 @@ struct HrtfEntry { ALuint sampleRate; ALsizei irSize; - /* Base elevation index for the farthest field. */ - ALsizei evFarBase; struct Field { - ALubyte evCount; ALfloat distance; + ALubyte evCount; }; /* NOTE: Fields are stored *backwards*. field[0] is the farthest field, and * field[fdCount-1] is the nearest. */ ALsizei fdCount; - Field *field; + const Field *field; - const ALubyte *azCount; - const ALushort *evOffset; + struct Elevation { + ALushort azCount; + ALushort irOffset; + }; + Elevation *elev; const ALfloat (*coeffs)[2]; const ALubyte (*delays)[2]; |