From 3ee0906c81e3af184c7be5029fdfc5c0b4703179 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 2 Feb 2020 16:11:43 -0800 Subject: Use std::array and span for the HRTF delays --- alc/hrtf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alc/hrtf.h') 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 Delay; float Gain; }; @@ -91,7 +91,7 @@ al::vector 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 delays); /** * Produces HRTF filter coefficients for decoding B-Format, given a set of -- cgit v1.2.3