![]() |
Cinder
0.9.1
|
#include <Buffer.h>
Inherits cinder::audio::BufferBaseT< T >.
Inherited by cinder::audio::BufferDynamicT< BufferInterleaved >.
Public Types | |
typedef T | SampleType |
Public Member Functions | |
BufferInterleavedT (size_t numFrames=0, size_t numChannels=1) | |
void | zero (size_t startFrame, size_t numFrames) |
size_t | getNumFrames () const |
size_t | getNumChannels () const |
size_t | getSize () const |
bool | isEmpty () const |
T * | getData () |
const T * | getData () const |
T & | operator[] (size_t n) |
const T & | operator[] (size_t n) const |
void | zero () |
Protected Attributes | |
std::vector< T > | mData |
size_t | mNumChannels |
size_t | mNumFrames |
Audio buffer that stores its channels of type T in one interleaved array (ie. the first sample of channel 1 is directly after the first sample of channel 0).
|
inherited |
The compile-time defined type of samples contained in the buffer.
cinder::audio::BufferInterleavedT< T >::BufferInterleavedT | ( | size_t | numFrames = 0 , |
size_t | numChannels = 1 |
||
) |
void cinder::audio::BufferInterleavedT< T >::zero | ( | size_t | startFrame, |
size_t | numFrames | ||
) |
|
inherited |
Returns the number of frames in the buffer.
|
inherited |
Returns the number of channels in the buffer.
|
inherited |
Returns the total size of the buffer (frames * channels).
|
inherited |
Returns true if number of frames is zero, false otherwise.
|
inherited |
Returns a pointer to the first sample in the data buffer.
|
inherited |
Returns a const pointer to the first sample in the data buffer.
|
inherited |
|
inherited |
|
inherited |
Sets all samples to the value zero.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |