diff options
author | Chris Robinson <[email protected]> | 2023-12-09 10:02:27 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-12-09 10:02:27 -0800 |
commit | decc10da2bdbb611cce63916f8c6f8b17ea45da1 (patch) | |
tree | f2bea89f5da0ad72dc0cd95eebe936c7b64f67dc /core/mastering.h | |
parent | 8ba2208f5e6e6460c338c5b3168ee6be485b4e10 (diff) |
More clang-tidy fixes
Diffstat (limited to 'core/mastering.h')
-rw-r--r-- | core/mastering.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/mastering.h b/core/mastering.h index 1a36937c..0d4f5fa1 100644 --- a/core/mastering.h +++ b/core/mastering.h @@ -1,6 +1,7 @@ #ifndef CORE_MASTERING_H #define CORE_MASTERING_H +#include <array> #include <memory> #include "almalloc.h" @@ -44,8 +45,8 @@ struct Compressor { float mAttack{0.0f}; float mRelease{0.0f}; - alignas(16) float mSideChain[2*BufferLineSize]{}; - alignas(16) float mCrestFactor[BufferLineSize]{}; + alignas(16) std::array<float,2*BufferLineSize> mSideChain{}; + alignas(16) std::array<float,BufferLineSize> mCrestFactor{}; SlidingHold *mHold{nullptr}; FloatBufferLine *mDelay{nullptr}; @@ -63,7 +64,7 @@ struct Compressor { ~Compressor(); void process(const uint SamplesToDo, FloatBufferLine *OutBuffer); - int getLookAhead() const noexcept { return static_cast<int>(mLookAhead); } + [[nodiscard]] auto getLookAhead() const noexcept -> int { return static_cast<int>(mLookAhead); } DEF_PLACE_NEWDEL() |