diff options
author | Chris Robinson <[email protected]> | 2020-02-02 16:11:43 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-02-08 15:00:58 -0800 |
commit | 3ee0906c81e3af184c7be5029fdfc5c0b4703179 (patch) | |
tree | e6becaf8e693bbc5967a8dc0bbf7867b3176660c /alc/hrtf.h | |
parent | e72a02c5e285670d07b9013c34e02919def4c31d (diff) |
Use std::array and span for the HRTF delays
Diffstat (limited to 'alc/hrtf.h')
-rw-r--r-- | alc/hrtf.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -63,7 +63,7 @@ struct HrtfStore { struct HrtfFilter { alignas(16) HrirArray Coeffs; - ALuint Delay[2]; + std::array<ALuint,2> Delay; float Gain; }; @@ -91,7 +91,7 @@ al::vector<std::string> EnumerateHrtf(const char *devname); HrtfStore *GetLoadedHrtf(const std::string &name, const char *devname, const ALuint devrate); void GetHrtfCoeffs(const HrtfStore *Hrtf, float elevation, float azimuth, float distance, - float spread, HrirArray &coeffs, ALuint (&delays)[2]); + float spread, HrirArray &coeffs, const al::span<ALuint,2> delays); /** * Produces HRTF filter coefficients for decoding B-Format, given a set of |