aboutsummaryrefslogtreecommitdiffstats
path: root/alc/converter.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/converter.h
parentc6c50484160435ee96e51eece154013fe6e48237 (diff)
Simplify flexible array member usage
Diffstat (limited to 'alc/converter.h')
-rw-r--r--alc/converter.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/alc/converter.h b/alc/converter.h
index 62f09af1..46e57f10 100644
--- a/alc/converter.h
+++ b/alc/converter.h
@@ -39,13 +39,7 @@ struct SampleConverter {
ALuint convert(const ALvoid **src, ALuint *srcframes, ALvoid *dst, ALuint dstframes);
ALuint availableOut(ALuint srcframes) const;
- static constexpr size_t Sizeof(size_t length) noexcept
- {
- return maxz(sizeof(SampleConverter),
- al::FlexArray<ChanSamples>::Sizeof(length, offsetof(SampleConverter, mChan)));
- }
-
- DEF_PLACE_NEWDEL()
+ DEF_FAM_NEWDEL(SampleConverter, mChan)
};
using SampleConverterPtr = std::unique_ptr<SampleConverter>;