diff options
author | Chris Robinson <[email protected]> | 2023-01-11 01:01:35 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-01-11 01:01:35 -0800 |
commit | 05d934ccd1a828773c3f33180bafad4220a33d4d (patch) | |
tree | 54fc76f460f16aac290d7daaeb3572010847d7e3 /core/hrtf.h | |
parent | a82c29bb4fadc76957946698149eadfdf64395bd (diff) |
Use a span instead of a count+pointer
Diffstat (limited to 'core/hrtf.h')
-rw-r--r-- | core/hrtf.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/core/hrtf.h b/core/hrtf.h index 64bd4f5c..eb18682a 100644 --- a/core/hrtf.h +++ b/core/hrtf.h @@ -20,8 +20,8 @@ struct HrtfStore { RefCount mRef; - uint mSampleRate; - uint mIrSize; + uint mSampleRate : 24; + uint mIrSize : 8; struct Field { float distance; @@ -30,8 +30,7 @@ struct HrtfStore { /* NOTE: Fields are stored *backwards*. field[0] is the farthest field, and * field[fdCount-1] is the nearest. */ - uint mFieldCount; - const Field *mField; + al::span<const Field> mFields; struct Elevation { ushort azCount; |