aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/hrtf.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-10-06 00:23:11 -0700
committerChris Robinson <[email protected]>2015-10-06 00:23:11 -0700
commita4c378dd00c74bf8a9904cdd49ad557e9822878d (patch)
treec71be0d2b01fbca8e84635da5263dd91c0a53d18 /Alc/hrtf.h
parentf590af510dcae8a64c833d78c0a1238c281eea27 (diff)
Enumerate and list HRTFs per-device
Diffstat (limited to 'Alc/hrtf.h')
-rw-r--r--Alc/hrtf.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Alc/hrtf.h b/Alc/hrtf.h
index fed75173..57b8f9b0 100644
--- a/Alc/hrtf.h
+++ b/Alc/hrtf.h
@@ -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);