aboutsummaryrefslogtreecommitdiffstats
path: root/alc/hrtf.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-11-29 08:33:46 -0800
committerChris Robinson <[email protected]>2019-11-29 08:33:46 -0800
commit7ff165b09562b6942160803b0ea713ff4c911354 (patch)
treec7eddb8bb61bafc7ccdfc7f3f23f998176118cfc /alc/hrtf.h
parent34edd3a9141775f04893fd56622f36a47af558b4 (diff)
Use unsigned for array indices
Diffstat (limited to 'alc/hrtf.h')
-rw-r--r--alc/hrtf.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/alc/hrtf.h b/alc/hrtf.h
index 7a69fcb1..7dc41a6a 100644
--- a/alc/hrtf.h
+++ b/alc/hrtf.h
@@ -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