aboutsummaryrefslogtreecommitdiffstats
path: root/core/bufferline.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-02-06 14:39:30 -0800
committerChris Robinson <[email protected]>2021-02-06 14:39:30 -0800
commitdfe627133c1d018748bd66ad1f8c72945448a34a (patch)
treee1b13de1178629836538ccec8e573dc0b67227cc /core/bufferline.h
parent72c4dd4d10659fb0e3fa973e68f399c6b34d4b99 (diff)
Use spans instead of references to arrays
Diffstat (limited to 'core/bufferline.h')
-rw-r--r--core/bufferline.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/bufferline.h b/core/bufferline.h
index 503e208d..8b445f3f 100644
--- a/core/bufferline.h
+++ b/core/bufferline.h
@@ -3,6 +3,8 @@
#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.
@@ -10,5 +12,6 @@
constexpr int BufferLineSize{1024};
using FloatBufferLine = std::array<float,BufferLineSize>;
+using FloatBufferSpan = al::span<float,BufferLineSize>;
#endif /* CORE_BUFFERLINE_H */