Superclasses :
none
Subclasses :
none
Header : AUBuffer
template <class T> class TAUBuffer
Allocates an array of samples of any type, to be optimally aligned for the processor.
Methods
Constructor
TAUBuffer();
TAUBuffer(
UInt32 numElems,
UInt32 numChannels
);
Destructor
|
public nonvirtual destructor
|
~TAUBuffer();
Calls Deallocate.
Other
void Allocate(UInt32 numElems);
Allocates an array of aligned data.
void AllocateClear(UInt32 numElems);
Allocates an array of aligned data and sets it to zero.
void Clear();
Sets the buffer to all zeroes.
void Deallocate();
Frees the space for the array.
operator T *();
Returns a pointer to the aligned data.
Data
Other
|
private instance variable
|
T* mAlignedBuffer;
The aligned data pointer.
|
private instance variable
|
UInt32 mBufferSizeBytes;
Size of the aligned buffer in bytes.
|
private instance variable
|
void* mMemObject;
Pointer to data allocated by this object.