diff options
author | Chris Robinson <[email protected]> | 2019-11-29 08:33:46 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-11-29 08:33:46 -0800 |
commit | 7ff165b09562b6942160803b0ea713ff4c911354 (patch) | |
tree | c7eddb8bb61bafc7ccdfc7f3f23f998176118cfc /alc/hrtf.h | |
parent | 34edd3a9141775f04893fd56622f36a47af558b4 (diff) |
Use unsigned for array indices
Diffstat (limited to 'alc/hrtf.h')
-rw-r--r-- | alc/hrtf.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -59,13 +59,13 @@ struct HrtfStore { struct HrtfState { - alignas(16) std::array<ALfloat,HRTF_HISTORY_LENGTH> History; + alignas(16) std::array<float,HRTF_HISTORY_LENGTH> History; }; struct HrtfFilter { alignas(16) HrirArray Coeffs; - ALsizei Delay[2]; - ALfloat Gain; + ALuint Delay[2]; + float Gain; }; struct DirectHrtfState { @@ -91,8 +91,8 @@ struct AngularPoint { al::vector<std::string> EnumerateHrtf(const char *devname); HrtfStore *GetLoadedHrtf(const std::string &name, const char *devname, const ALuint devrate); -void GetHrtfCoeffs(const HrtfStore *Hrtf, ALfloat elevation, ALfloat azimuth, ALfloat distance, - ALfloat spread, HrirArray &coeffs, ALsizei (&delays)[2]); +void GetHrtfCoeffs(const HrtfStore *Hrtf, float elevation, float azimuth, float distance, + float spread, HrirArray &coeffs, ALuint (&delays)[2]); /** * Produces HRTF filter coefficients for decoding B-Format, given a set of |