aboutsummaryrefslogtreecommitdiffstats
path: root/alc/hrtf.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-11-28 08:24:29 -0800
committerChris Robinson <[email protected]>2019-11-28 08:24:29 -0800
commit925e6e979c85a1e8f36d5fb01ce3a4409e38927c (patch)
tree839d2597421fc509e67ecce9d7fd0f649fd10783 /alc/hrtf.h
parent1e93fba6d02486634afa27fc58a79e8ffa6c6458 (diff)
Rework HRTF enuemration so the loaded HRTFs are separate
Diffstat (limited to 'alc/hrtf.h')
-rw-r--r--alc/hrtf.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/alc/hrtf.h b/alc/hrtf.h
index 6df13027..d6985142 100644
--- a/alc/hrtf.h
+++ b/alc/hrtf.h
@@ -14,8 +14,6 @@
#include "atomic.h"
#include "vector.h"
-struct HrtfHandle;
-
#define HRTF_HISTORY_BITS (6)
#define HRTF_HISTORY_LENGTH (1<<HRTF_HISTORY_BITS)
@@ -56,12 +54,6 @@ struct HrtfStore {
DEF_PLACE_NEWDEL()
};
-struct EnumeratedHrtf {
- std::string name;
-
- HrtfHandle *hrtf;
-};
-
using float2 = std::array<float,2>;
using HrirArray = std::array<float2,HRIR_LENGTH>;
@@ -96,8 +88,8 @@ struct AngularPoint {
};
-al::vector<EnumeratedHrtf> EnumerateHrtf(const char *devname);
-HrtfStore *GetLoadedHrtf(HrtfHandle *handle);
+al::vector<std::string> EnumerateHrtf(const char *devname);
+HrtfStore *GetLoadedHrtf(const std::string &name);
void GetHrtfCoeffs(const HrtfStore *Hrtf, ALfloat elevation, ALfloat azimuth, ALfloat distance,
ALfloat spread, HrirArray &coeffs, ALsizei (&delays)[2]);