Don't pass the channel count to GetBFormatHrtfCoeffs
[openal-soft.git] / Alc / hrtf.h
blob9f3f0adeed81543ba81dc3546eb150febb7344dd
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 enum DevFmtChannels;
11 struct Hrtf;
13 typedef struct HrtfEntry {
14 al_string name;
15 al_string filename;
17 const struct Hrtf *hrtf;
18 } HrtfEntry;
19 TYPEDEF_VECTOR(HrtfEntry, vector_HrtfEntry)
21 #define HRIR_BITS (7)
22 #define HRIR_LENGTH (1<<HRIR_BITS)
23 #define HRIR_MASK (HRIR_LENGTH-1)
24 #define HRTFDELAY_BITS (20)
25 #define HRTFDELAY_FRACONE (1<<HRTFDELAY_BITS)
26 #define HRTFDELAY_MASK (HRTFDELAY_FRACONE-1)
28 void FreeHrtfs(void);
30 vector_HrtfEntry EnumerateHrtf(const_al_string devname);
31 void FreeHrtfList(vector_HrtfEntry *list);
33 ALuint GetHrtfSampleRate(const struct Hrtf *Hrtf);
34 ALuint GetHrtfIrSize(const struct Hrtf *Hrtf);
36 void GetLerpedHrtfCoeffs(const struct Hrtf *Hrtf, ALfloat elevation, ALfloat azimuth, ALfloat dirfact, ALfloat gain, ALfloat (*coeffs)[2], ALuint *delays);
37 ALuint GetMovingHrtfCoeffs(const struct Hrtf *Hrtf, ALfloat elevation, ALfloat azimuth, ALfloat dirfact, ALfloat gain, ALfloat delta, ALint counter, ALfloat (*coeffs)[2], ALuint *delays, ALfloat (*coeffStep)[2], ALint *delayStep);
38 void GetBFormatHrtfCoeffs(const struct Hrtf *Hrtf, ALfloat (*coeffs_list[4])[2], ALuint *delay_list[4]);
40 #endif /* ALC_HRTF_H */