aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/hrtf.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-02-17 22:12:54 -0800
committerChris Robinson <[email protected]>2018-02-18 23:56:51 -0800
commit6ff50558a04c9d59f0f9bd45d4588095b95c8ec5 (patch)
treecd486900b7089bf643c17ed92244592fb2a7a1a9 /Alc/hrtf.h
parentfa9ab9af7cb559ff9ecc1846f2996265bfbea1ec (diff)
Use a proper struct for specifying angular points
Diffstat (limited to 'Alc/hrtf.h')
-rw-r--r--Alc/hrtf.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Alc/hrtf.h b/Alc/hrtf.h
index 60842e8d..cb6dfddc 100644
--- a/Alc/hrtf.h
+++ b/Alc/hrtf.h
@@ -63,6 +63,11 @@ typedef struct DirectHrtfState {
} Chan[];
} DirectHrtfState;
+struct AngularPoint {
+ ALfloat Elev;
+ ALfloat Azim;
+};
+
void FreeHrtfs(void);
@@ -79,6 +84,6 @@ void GetHrtfCoeffs(const struct Hrtf *Hrtf, ALfloat elevation, ALfloat azimuth,
* virtual speaker positions and HF/LF matrices for decoding to them. The
* returned coefficients are ordered and scaled according to the matrices.
*/
-void BuildBFormatHrtf(const struct Hrtf *Hrtf, DirectHrtfState *state, ALsizei NumChannels, const ALfloat (*restrict AmbiPoints)[2], const ALfloat (*restrict AmbiMatrix)[MAX_AMBI_COEFFS], ALsizei AmbiCount, const ALfloat *restrict AmbiOrderHFGain);
+void BuildBFormatHrtf(const struct Hrtf *Hrtf, DirectHrtfState *state, ALsizei NumChannels, const struct AngularPoint *AmbiPoints, const ALfloat (*restrict AmbiMatrix)[MAX_AMBI_COEFFS], ALsizei AmbiCount, const ALfloat *restrict AmbiOrderHFGain);
#endif /* ALC_HRTF_H */