diff options
author | Chris Robinson <[email protected]> | 2015-10-06 00:23:11 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-10-06 00:23:11 -0700 |
commit | a4c378dd00c74bf8a9904cdd49ad557e9822878d (patch) | |
tree | c71be0d2b01fbca8e84635da5263dd91c0a53d18 /Alc/hrtf.h | |
parent | f590af510dcae8a64c833d78c0a1238c281eea27 (diff) |
Enumerate and list HRTFs per-device
Diffstat (limited to 'Alc/hrtf.h')
-rw-r--r-- | Alc/hrtf.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -10,6 +10,12 @@ enum DevFmtChannels; struct Hrtf; +typedef struct HrtfEntry { + al_string name; + al_string filename; +} HrtfEntry; +TYPEDEF_VECTOR(HrtfEntry, vector_HrtfEntry) + #define HRIR_BITS (7) #define HRIR_LENGTH (1<<HRIR_BITS) #define HRIR_MASK (HRIR_LENGTH-1) @@ -17,6 +23,9 @@ struct Hrtf; #define HRTFDELAY_FRACONE (1<<HRTFDELAY_BITS) #define HRTFDELAY_MASK (HRTFDELAY_FRACONE-1) +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); |