diff options
author | Chris Robinson <[email protected]> | 2015-10-06 06:48:53 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-10-06 06:48:53 -0700 |
commit | 0eef6d9d51f90e0066734f22cb49c27bee5ec64c (patch) | |
tree | e600960e8ceab02fab508bc74402d82b64c513ba /Alc/hrtf.h | |
parent | 1b51ee8b8797d6780f71a3a36bc5243eb357435a (diff) |
Use the enumerated HRTF list for selecting an HRTF
Also report the proper specifier of the one currently in use.
Diffstat (limited to 'Alc/hrtf.h')
-rw-r--r-- | Alc/hrtf.h | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -25,15 +25,14 @@ TYPEDEF_VECTOR(HrtfEntry, vector_HrtfEntry) #define HRTFDELAY_FRACONE (1<<HRTFDELAY_BITS) #define HRTFDELAY_MASK (HRTFDELAY_FRACONE-1) +void FreeHrtfs(void); + vector_HrtfEntry EnumerateHrtf(const_al_string devname); void FreeHrtfList(vector_HrtfEntry *list); -const struct Hrtf *GetHrtf(const_al_string devname, enum DevFmtChannels chans, ALCuint srate); -ALCboolean FindHrtfFormat(const_al_string devname, enum DevFmtChannels *chans, ALCuint *srate); - -void FreeHrtfs(void); - +ALuint GetHrtfSampleRate(const struct Hrtf *Hrtf); ALuint GetHrtfIrSize(const struct Hrtf *Hrtf); + void GetLerpedHrtfCoeffs(const struct Hrtf *Hrtf, ALfloat elevation, ALfloat azimuth, ALfloat dirfact, ALfloat gain, ALfloat (*coeffs)[2], ALuint *delays); 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); void GetBFormatHrtfCoeffs(const struct Hrtf *Hrtf, const ALuint num_chans, ALfloat (**coeffs_list)[2], ALuint **delay_list); |