diff options
author | Chris Robinson <[email protected]> | 2023-01-10 23:59:19 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-01-10 23:59:19 -0800 |
commit | a82c29bb4fadc76957946698149eadfdf64395bd (patch) | |
tree | 67898016bb5025347f47315e8d10df5f605d02bb /core/hrtf.h | |
parent | 6bd541d02e664505e3aacc643a46ecfb6919612f (diff) |
Rename some struct members
And make a related function a member function
Diffstat (limited to 'core/hrtf.h')
-rw-r--r-- | core/hrtf.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/core/hrtf.h b/core/hrtf.h index 0c8d2a49..64bd4f5c 100644 --- a/core/hrtf.h +++ b/core/hrtf.h @@ -20,8 +20,8 @@ struct HrtfStore { RefCount mRef; - uint sampleRate; - uint irSize; + uint mSampleRate; + uint mIrSize; struct Field { float distance; @@ -30,16 +30,19 @@ struct HrtfStore { /* NOTE: Fields are stored *backwards*. field[0] is the farthest field, and * field[fdCount-1] is the nearest. */ - uint fdCount; - const Field *field; + uint mFieldCount; + const Field *mField; struct Elevation { ushort azCount; ushort irOffset; }; - Elevation *elev; - const HrirArray *coeffs; - const ubyte2 *delays; + Elevation *mElev; + const HrirArray *mCoeffs; + const ubyte2 *mDelays; + + void getCoeffs(float elevation, float azimuth, float distance, float spread, HrirArray &coeffs, + const al::span<uint,2> delays); void add_ref(); void dec_ref(); @@ -84,7 +87,4 @@ struct DirectHrtfState { al::vector<std::string> EnumerateHrtf(al::optional<std::string> pathopt); HrtfStorePtr GetLoadedHrtf(const std::string &name, const uint devrate); -void GetHrtfCoeffs(const HrtfStore *Hrtf, float elevation, float azimuth, float distance, - float spread, HrirArray &coeffs, const al::span<uint,2> delays); - #endif /* CORE_HRTF_H */ |