11#ifndef MARVIN_BUFFER_H
12#define MARVIN_BUFFER_H
21 template <FloatType SampleType>
30 BufferView(SampleType*
const* samples,
size_t nChannels,
size_t nSamples);
57 [[nodiscard]] std::span<SampleType> operator[](
size_t channel) noexcept;
64 [[nodiscard]] std::span<const SampleType> operator[](
size_t channel) const noexcept;
67 SampleType* const* m_samples;
Views, wrappers and custom containers.
Definition marvin_BufferView.h:15
BufferView(SampleType *const *samples, size_t nChannels, size_t nSamples)
const SampleType *const * getArrayOfReadPointers() const noexcept
SampleType *const * getArrayOfWritePointers() noexcept
size_t getNumChannels() const noexcept
size_t getNumSamples() const noexcept