aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/hrtf.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-05-22 10:58:18 -0700
committerChris Robinson <[email protected]>2019-05-22 11:07:12 -0700
commit67085040268003b6027317cca64ca72a18d90ce7 (patch)
tree3fd630d64247a4b86f710b1317e50b7c9a1f5fb5 /Alc/hrtf.h
parentb48bab33948dae90a27b4f8ccd3eb6b20d49ba86 (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.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/Alc/hrtf.h b/Alc/hrtf.h
index 68a4301b..0283de13 100644
--- a/Alc/hrtf.h
+++ b/Alc/hrtf.h
@@ -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];