11template <
typename T =
float>
21 void setSize(int32_t numChannels, int32_t samples)
51 assert(
data[channel]);
55 const T*
getPtr(int32_t channel)
const
58 assert(
data[channel]);
65 assert(
data[channel]);
91 void alloc(int32_t channel, int32_t samples)
107 data[channel] =
nullptr;
void alloc(int32_t channel, int32_t samples)
void setSize(int32_t numChannels, int32_t samples)
void dealloc(int32_t channel)
void assignSamples(const SamplesFloat &rhs)
int32_t getNumSamples() const
void assignSamples(int32_t channel, const T *input)
T * getPtr(int32_t channel)
const T * getPtr(int32_t channel) const
int32_t getNumChannels() const
void aligned_free(void *p)
free memory allocated with aligned_malloc
void * aligned_malloc(size_t required_bytes, size_t alignment)
reserve aligned memory. Needs to be freed with aligned_free()
void setToZero(T *dst, int32_t n)
void copy(const T *src, T *dst, int32_t n)
SamplesFloat< float > SamplesReal
SamplesFloat< std::complex< float > > SamplesComplex