diff options
author | Chris Robinson <[email protected]> | 2016-07-07 10:26:42 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-07-07 10:26:42 -0700 |
commit | 7ec89b4b6e787c9bb0b73aea7f736351f1b0bfca (patch) | |
tree | b12b9da8d160048f7aaa8da8d4e8eb9cef2daecd /Alc/hrtf.h | |
parent | b495d80f5624328569bd0d8b9478927c0fc32100 (diff) |
Avoid function calls to get the HRTF sample rate and IR size
Diffstat (limited to 'Alc/hrtf.h')
-rw-r--r-- | Alc/hrtf.h | 18 |
1 files changed, 14 insertions, 4 deletions
@@ -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 */ |