TAUBuffer

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

public constructor


 TAUBuffer();



TAUBuffer

public constructor


 TAUBuffer(
          UInt32                          numElems,
          UInt32                          numChannels
    );



Destructor


~TAUBuffer

public nonvirtual destructor


 ~TAUBuffer();

Calls Deallocate.



Other


Allocate

public nonvirtual method


 void Allocate(UInt32 numElems);

Allocates an array of aligned data.



AllocateClear

public nonvirtual method


 void AllocateClear(UInt32 numElems);

Allocates an array of aligned data and sets it to zero.



Clear

public nonvirtual method


 void Clear();

Sets the buffer to all zeroes.



Deallocate

public nonvirtual method


 void Deallocate();

Frees the space for the array.



operator T *()

public nonvirtual method


 operator T *();

Returns a pointer to the aligned data.



Data


Other


mAlignedBuffer

private instance variable


 T* mAlignedBuffer;

The aligned data pointer.



mBufferSizeBytes

private instance variable


 UInt32 mBufferSizeBytes;

Size of the aligned buffer in bytes.



mMemObject

private instance variable


 void* mMemObject;

Pointer to data allocated by this object.