aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/hrtf.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-07-07 10:26:42 -0700
committerChris Robinson <[email protected]>2016-07-07 10:26:42 -0700
commit7ec89b4b6e787c9bb0b73aea7f736351f1b0bfca (patch)
treeb12b9da8d160048f7aaa8da8d4e8eb9cef2daecd /Alc/hrtf.h
parentb495d80f5624328569bd0d8b9478927c0fc32100 (diff)
Avoid function calls to get the HRTF sample rate and IR size
Diffstat (limited to 'Alc/hrtf.h')
-rw-r--r--Alc/hrtf.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/Alc/hrtf.h b/Alc/hrtf.h
index e8a127c7..e9f04d49 100644
--- a/Alc/hrtf.h
+++ b/Alc/hrtf.h
@@ -6,7 +6,20 @@
#include "alstring.h"
-struct Hrtf;
+
+struct Hrtf {
+ ALuint sampleRate;
+ ALuint irSize;
+ ALubyte evCount;
+
+ const ALubyte *azCount;
+ const ALushort *evOffset;
+ const ALshort *coeffs;
+ const ALubyte *delays;
+
+ const char *filename;
+ struct Hrtf *next;
+};
typedef struct HrtfEntry {
al_string name;
@@ -27,9 +40,6 @@ void FreeHrtfs(void);
vector_HrtfEntry EnumerateHrtf(const_al_string devname);
void FreeHrtfList(vector_HrtfEntry *list);
-ALuint GetHrtfSampleRate(const struct Hrtf *Hrtf);
-ALuint GetHrtfIrSize(const struct Hrtf *Hrtf);
-
void GetLerpedHrtfCoeffs(const struct Hrtf *Hrtf, ALfloat elevation, ALfloat azimuth, ALfloat spread, ALfloat gain, ALfloat (*coeffs)[2], ALuint *delays);
#endif /* ALC_HRTF_H */