aboutsummaryrefslogtreecommitdiffstats
path: root/alc/bufferline.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-05-19 10:21:19 -0700
committerChris Robinson <[email protected]>2020-05-19 10:21:19 -0700
commita512eae7bb3554723b7b290985404e7c480b9bf1 (patch)
tree2789d4b3ea9d6d0c47b1526196603bf13f21edfb /alc/bufferline.h
parent463591663c2421b3436edc446d173380d6a6e106 (diff)
Move BUFFERSIZE and FloatBufferLine to a separate header
Diffstat (limited to 'alc/bufferline.h')
-rw-r--r--alc/bufferline.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/alc/bufferline.h b/alc/bufferline.h
new file mode 100644
index 00000000..79f0996c
--- /dev/null
+++ b/alc/bufferline.h
@@ -0,0 +1,15 @@
+#ifndef ALC_BUFFERLINE_H
+#define ALC_BUFFERLINE_H
+
+#include <array>
+
+/* Size for temporary storage of buffer data, in floats. Larger values need
+ * more memory, while smaller values may need more iterations. The value needs
+ * to be a sensible size, however, as it constrains the max stepping value used
+ * for mixing, as well as the maximum number of samples per mixing iteration.
+ */
+#define BUFFERSIZE 1024
+
+using FloatBufferLine = std::array<float,BUFFERSIZE>;
+
+#endif /* ALC_BUFFERLINE_H */