aboutsummaryrefslogtreecommitdiffstats
path: root/alc/hrtf.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-11 03:59:53 -0700
committerChris Robinson <[email protected]>2019-09-11 03:59:53 -0700
commit5b37e2339bc91de3424b51600c3d3b96401d0b9c (patch)
tree4f816457b227ee511563b9b6f0d3fa91bd70b814 /alc/hrtf.h
parentc6c50484160435ee96e51eece154013fe6e48237 (diff)
Simplify flexible array member usage
Diffstat (limited to 'alc/hrtf.h')
-rw-r--r--alc/hrtf.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/alc/hrtf.h b/alc/hrtf.h
index 487dca61..85614f2e 100644
--- a/alc/hrtf.h
+++ b/alc/hrtf.h
@@ -85,10 +85,8 @@ struct DirectHrtfState {
DirectHrtfState(size_t numchans) : Coeffs{numchans} { }
static std::unique_ptr<DirectHrtfState> Create(size_t num_chans);
- static constexpr size_t Sizeof(size_t numchans) noexcept
- { return al::FlexArray<HrirArray,16>::Sizeof(numchans, offsetof(DirectHrtfState, Coeffs)); }
- DEF_PLACE_NEWDEL()
+ DEF_FAM_NEWDEL(DirectHrtfState, Coeffs)
};
struct AngularPoint {