aboutsummaryrefslogtreecommitdiffstats
path: root/core/mastering.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-12-30 06:27:33 -0800
committerChris Robinson <[email protected]>2023-12-30 06:27:33 -0800
commit82efb29e2ac3d48892b05e1c4d23524d35da69c7 (patch)
tree8c3b9bf45e51ae8db12818c25ea4200e6d80cdca /core/mastering.h
parente9c7a8602530d73dd34af11172af79b7d58a3b49 (diff)
Clean up some ugly pointer manipulation in the limiter
Diffstat (limited to 'core/mastering.h')
-rw-r--r--core/mastering.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/mastering.h b/core/mastering.h
index 8baea601..4a3b59cf 100644
--- a/core/mastering.h
+++ b/core/mastering.h
@@ -6,6 +6,7 @@
#include "almalloc.h"
#include "alnumeric.h"
+#include "alspan.h"
#include "bufferline.h"
struct SlidingHold;
@@ -50,7 +51,7 @@ struct Compressor {
alignas(16) std::array<float,BufferLineSize> mCrestFactor{};
SlidingHold *mHold{nullptr};
- FloatBufferLine *mDelay{nullptr};
+ al::span<FloatBufferLine> mDelay;
float mCrestCoeff{0.0f};
float mGainEstimate{0.0f};