1 #ifndef __AudioBuffer_h__
2 #define __AudioBuffer_h__
17 void add(
float scalar){
void multiply(float scalar)
static AudioBuffer * create(int channels, int samples)
void add(AudioBuffer &other)
virtual int getChannels()=0
static void destroy(AudioBuffer *buffer)
void copyTo(AudioBuffer &other)
void copyFrom(AudioBuffer &other)
virtual FloatArray getSamples(int channel)=0
This class contains useful methods for manipulating arrays of floats.
void multiply(FloatArray operand2, FloatArray destination)
Element-wise multiplication between arrays.
void add(FloatArray operand2, FloatArray destination)
Element-wise sum between arrays.
void copyFrom(SimpleArray< T > source)
Copies the content of another array into this array.
void copyTo(SimpleArray< T > destination)
Copies the content of this array to another array.