Change the backend getLatency method to return the clock time too
[openal-soft.git] / Alc / hrtf.h
blobe8a127c7a6d44d1a4b6e29be81066692cd070533
1 #ifndef ALC_HRTF_H
2 #define ALC_HRTF_H
4 #include "AL/al.h"
5 #include "AL/alc.h"
7 #include "alstring.h"
9 struct Hrtf;
11 typedef struct HrtfEntry {
12 al_string name;
14 const struct Hrtf *hrtf;
15 } HrtfEntry;
16 TYPEDEF_VECTOR(HrtfEntry, vector_HrtfEntry)
18 #define HRIR_BITS (7)
19 #define HRIR_LENGTH (1<<HRIR_BITS)
20 #define HRIR_MASK (HRIR_LENGTH-1)
21 #define HRTFDELAY_BITS (20)
22 #define HRTFDELAY_FRACONE (1<<HRTFDELAY_BITS)
23 #define HRTFDELAY_MASK (HRTFDELAY_FRACONE-1)
25 void FreeHrtfs(void);
27 vector_HrtfEntry EnumerateHrtf(const_al_string devname);
28 void FreeHrtfList(vector_HrtfEntry *list);
30 ALuint GetHrtfSampleRate(const struct Hrtf *Hrtf);
31 ALuint GetHrtfIrSize(const struct Hrtf *Hrtf);
33 void GetLerpedHrtfCoeffs(const struct Hrtf *Hrtf, ALfloat elevation, ALfloat azimuth, ALfloat spread, ALfloat gain, ALfloat (*coeffs)[2], ALuint *delays);
35 #endif /* ALC_HRTF_H */