bufferline.h 466 B

1234567891011121314151617
  1. #ifndef CORE_BUFFERLINE_H
  2. #define CORE_BUFFERLINE_H
  3. #include <array>
  4. #include "alspan.h"
  5. /* Size for temporary storage of buffer data, in floats. Larger values need
  6. * more memory and are harder on cache, while smaller values may need more
  7. * iterations for mixing.
  8. */
  9. inline constexpr size_t BufferLineSize{1024};
  10. using FloatBufferLine = std::array<float,BufferLineSize>;
  11. using FloatBufferSpan = al::span<float,BufferLineSize>;
  12. #endif /* CORE_BUFFERLINE_H */