aboutsummaryrefslogtreecommitdiffstats
path: root/alc/hrtf.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-02-02 16:11:43 -0800
committerChris Robinson <[email protected]>2020-02-08 15:00:58 -0800
commit3ee0906c81e3af184c7be5029fdfc5c0b4703179 (patch)
treee6becaf8e693bbc5967a8dc0bbf7867b3176660c /alc/hrtf.h
parente72a02c5e285670d07b9013c34e02919def4c31d (diff)
Use std::array and span for the HRTF delays
Diffstat (limited to 'alc/hrtf.h')
-rw-r--r--alc/hrtf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/hrtf.h b/alc/hrtf.h
index 25811cda..46b71920 100644
--- a/alc/hrtf.h
+++ b/alc/hrtf.h
@@ -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