aboutsummaryrefslogtreecommitdiffstats
path: root/core/bufferline.h
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-05-03 16:17:49 +0200
committerSven Gothel <[email protected]>2023-05-03 16:17:49 +0200
commitec167fd05661a5b02dd406c87081f84a0f8dd77d (patch)
tree9c4669e471c9969bda59265381b18d2d416db060 /core/bufferline.h
parent0d14d30808cfe7b9e3413353e3eef8a0f201399a (diff)
parentd3875f333fb6abe2f39d82caca329414871ae53b (diff)
Merge branch 'v1.23.1'
Resolved Conflicts: CMakeLists.txt
Diffstat (limited to 'core/bufferline.h')
-rw-r--r--core/bufferline.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/core/bufferline.h b/core/bufferline.h
new file mode 100644
index 00000000..8b445f3f
--- /dev/null
+++ b/core/bufferline.h
@@ -0,0 +1,17 @@
+#ifndef CORE_BUFFERLINE_H
+#define CORE_BUFFERLINE_H
+
+#include <array>
+
+#include "alspan.h"
+
+/* Size for temporary storage of buffer data, in floats. Larger values need
+ * more memory and are harder on cache, while smaller values may need more
+ * iterations for mixing.
+ */
+constexpr int BufferLineSize{1024};
+
+using FloatBufferLine = std::array<float,BufferLineSize>;
+using FloatBufferSpan = al::span<float,BufferLineSize>;
+
+#endif /* CORE_BUFFERLINE_H */