#include <SampleBuffer.h>
Collaboration diagram for syn::SampleBuffer:
Public Types | |
typedef DATA_TYPE | DataType |
Public Methods | |
SampleBuffer () | |
unsigned int | size () const |
amount of data contained (num samples). More... | |
void | resize (unsigned int x) |
change size. More... | |
unsigned int | bytes () const |
amount of data contained (num bytes). More... | |
unsigned int | capacity () const |
amount of data this buffer can hold. More... | |
void | recapacity (unsigned int x) |
change capacity. More... | |
DATA_TYPE* | data () |
returns the data ptr. More... | |
DATA_TYPE& | operator[] (unsigned int x) |
access individual samples. More... | |
const DATA_TYPE& | operator[] (unsigned int x) const |
access individual samples (const version). More... | |
DATA_TYPE* | frame (unsigned int x) |
jump to frame number x. More... | |
const DATA_TYPE* | frame (unsigned int x) const |
jump to frame number x (const version). More... | |
iterator | begin () |
get the beginning read iterator. More... | |
iterator | end () |
get the ending write iterator. More... | |
frame_iterator | fbegin () |
get the beginning read iterator. More... | |
frame_iterator | fend () |
get the ending write iterator. More... | |
void | fill (iterator pos, iterator f, iterator l) |
do a memcopy from f to l starting at position pos. More... | |
void | fill (iterator pos, DATA_TYPE *d, unsigned int size) |
do a memcopy from f to l starting at position pos. More... |
Definition at line 46 of file SampleBuffer.h.
|
Definition at line 49 of file SampleBuffer.h. |
|
Definition at line 51 of file SampleBuffer.h. |
|
amount of data contained (num samples).
Definition at line 56 of file SampleBuffer.h. |
|
change size.
Definition at line 62 of file SampleBuffer.h. |
|
amount of data contained (num bytes).
Definition at line 70 of file SampleBuffer.h. |
|
amount of data this buffer can hold.
Definition at line 76 of file SampleBuffer.h. |
|
change capacity.
Definition at line 82 of file SampleBuffer.h. Referenced by resize().
|
|
returns the data ptr.
Definition at line 89 of file SampleBuffer.h. |
|
access individual samples.
Definition at line 95 of file SampleBuffer.h. |
|
access individual samples (const version).
Definition at line 101 of file SampleBuffer.h. |
|
jump to frame number x. a frame is one sample of data over all channels. for stereo this returns the first of a pair of samples. for mono, it just returns a pointer to one sample. for quad, it returns the first of 4 samples. Definition at line 112 of file SampleBuffer.h. |
|
jump to frame number x (const version).
Definition at line 118 of file SampleBuffer.h. |
|
get the beginning read iterator.
Definition at line 155 of file SampleBuffer.h. |
|
get the ending write iterator.
Definition at line 160 of file SampleBuffer.h. |
|
get the beginning read iterator.
Definition at line 197 of file SampleBuffer.h. |
|
get the ending write iterator.
Definition at line 202 of file SampleBuffer.h. |
|
do a memcopy from f to l starting at position pos.
Definition at line 209 of file SampleBuffer.h. |
|
do a memcopy from f to l starting at position pos.
Definition at line 218 of file SampleBuffer.h. |