diff options
Diffstat (limited to 'core/bufferline.h')
-rw-r--r-- | core/bufferline.h | 17 |
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 */ |