diff options
author | Chris Robinson <[email protected]> | 2018-02-17 22:12:54 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-02-18 23:56:51 -0800 |
commit | 6ff50558a04c9d59f0f9bd45d4588095b95c8ec5 (patch) | |
tree | cd486900b7089bf643c17ed92244592fb2a7a1a9 /Alc/hrtf.h | |
parent | fa9ab9af7cb559ff9ecc1846f2996265bfbea1ec (diff) |
Use a proper struct for specifying angular points
Diffstat (limited to 'Alc/hrtf.h')
-rw-r--r-- | Alc/hrtf.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 */ |