12 #define HRIR_LENGTH (1<<HRIR_BITS)
13 #define HRIR_MASK (HRIR_LENGTH-1)
14 #define HRTFDELAY_BITS (20)
15 #define HRTFDELAY_FRACONE (1<<HRTFDELAY_BITS)
16 #define HRTFDELAY_MASK (HRTFDELAY_FRACONE-1)
18 const struct Hrtf
*GetHrtf(ALCdevice
*device
);
19 ALCboolean
FindHrtfFormat(const ALCdevice
*device
, enum DevFmtChannels
*chans
, ALCuint
*srate
);
23 ALuint
GetHrtfIrSize(const struct Hrtf
*Hrtf
);
24 ALfloat
CalcHrtfDelta(ALfloat oldGain
, ALfloat newGain
, const ALfloat olddir
[3], const ALfloat newdir
[3]);
25 void GetLerpedHrtfCoeffs(const struct Hrtf
*Hrtf
, ALfloat elevation
, ALfloat azimuth
, ALfloat gain
, ALfloat (*coeffs
)[2], ALuint
*delays
);
26 ALuint
GetMovingHrtfCoeffs(const struct Hrtf
*Hrtf
, ALfloat elevation
, ALfloat azimuth
, ALfloat gain
, ALfloat delta
, ALint counter
, ALfloat (*coeffs
)[2], ALuint
*delays
, ALfloat (*coeffStep
)[2], ALint
*delayStep
);
28 #endif /* ALC_HRTF_H */