|
| AudioRingBufferTpl () |
|
| AudioRingBufferTpl (const Size length, const uchar channels) |
|
void | reset () |
|
template<typename T2 , class STORAGE2 > |
Size | peek (AudioBufferTpl< T2, STORAGE2 > &out, Size elements, Size offsetSrc=0, Size offsetDst=0) |
| Puts a number of elements in the buffer provided. More...
|
|
template<typename T2 , class STORAGE2 > |
Size | pop (AudioBufferTpl< T2, STORAGE2 > &out, const Size elements, Size offsetSrc=0, Size offsetDst=0) |
| Pops a number of elements in the buffer provided. More...
|
|
template<typename T2 , class STORAGE2 > |
Size | push (const AudioBufferTpl< T2, STORAGE2 > &in, Size offsetSrc=0) |
| Adds validSize() amount of frames to the buffer. More...
|
|
Size | remaining () const |
| Returns how many more elements the buffer can hold. More...
|
|
Size | filled () const |
| Returns how many elements are in the buffer. More...
|
|
| AudioBufferTpl () |
| Empty buffer with no memory allocated yet. More...
|
|
| AudioBufferTpl (const Size length, const uchar channels) |
| Buffer with memory allocated. More...
|
|
| AudioBufferTpl (AudioBufferTpl &&source)=default |
| move contructor is implicitly deleted Don't know why More...
|
|
| AudioBufferTpl (const AudioBufferTpl &)=delete |
|
| AudioBufferTpl (const AudioBufferTpl *)=delete |
|
| ~AudioBufferTpl () |
|
AudioBufferTpl & | operator= (AudioBufferTpl &&source)=default |
|
AudioBufferTpl & | operator= (const AudioBufferTpl &)=delete |
|
void | set (const T2 *samples, Size length, const uchar channel=0, const Size offsetDst=0) |
| Set a single channel from an array. More...
|
|
void | set (T2 **const samples, const Size length, const uchar channels, const Size offsetSrc=0, const Size offsetDst=0) |
| Set multiple channels from a 2D array. More...
|
|
void | set (const AudioBufferTpl< T2, STORAGE2 > &buffer, Size length=0, const Size offsetSrc=0, const Size offsetDst=0) |
| Set from another buffer object, will not adjust size and channel count! Use clone() instead. More...
|
|
void | set (T value=0, Size length=0, const Size offsetDst=0) |
| Set the entire buffer to a constant value. More...
|
|
void | setFromInterleaved (const T2 *samples, Size length, const uchar channels, Size offsetSrc=0, const Size offsetDst=0) |
| Set multiple channels from an interleaved array. More...
|
|
void | clone (const AudioBufferTpl< T2, STORAGE2 > &buffer) |
| Match the size of the provided buffer and copy the contents. More...
|
|
bool | resize (const Size length, uchar channels) |
| ! Will not keep the contents! Resizes the buffer to the desired length and channel count. More...
|
|
void | resize (const Size length) |
| Resize to the provided length and keep the channelcount. More...
|
|
void | resize (const AudioBufferTpl< T2, STORAGE2 > &buffer) |
| Resize to match the provided buffer. More...
|
|
void | add (const AudioBufferTpl< T2, STORAGE2 > &buffer, Size length=0, Size offsetSrc=0, Size offsetDst=0) |
| Add the provided buffer. More...
|
|
void | add (T value) |
| Adds a constant to the contents of the buffer. More...
|
|
void | multiply (const AudioBufferTpl< T2, STORAGE2 > &buffer, Size length=0, Size offsetSrc=0, Size offsetDst=0) |
| Multiply two buffers. More...
|
|
void | multiply (T value) |
| Mutliplies the content of the buffer with a constant. More...
|
|
bool | inject (T *mem, const Size size, const uchar channels) |
| Inject forgeign memory to be used by the buffer. More...
|
|
bool | inject (const T *mem, const Size size, const uchar channels) |
| Inject const forgeign memory to be used by the buffer. More...
|
|
uchar | channels () const |
| Returns the amount of channels. More...
|
|
Size | size () const |
| Returns the allocated length of the buffer. More...
|
|
Size | validSize () const |
| Returns the length of actually valid audio in the buffer. More...
|
|
void | setValidSize (const Size v) |
| Set the amount of valid samples currently in the buffer This is mostly a convenience flag since the actual size of the buffer may be larger. More...
|
|
T * | get (const uchar channel) |
|
const T * | get (const uchar channel) const |
|
const T * | operator[] (const uchar channel) const |
|
T * | operator[] (const uchar channel) |
|
void | getRaw (T **put) |
| Fills an 2d array of size maxChannels() with pointers to each channel. More...
|
|
void | getRaw (const T **put) const |
| Fills an 2d array of size maxChannels() with pointers to each channel. More...
|
|
Size | put (T2 *target, Size length=0, const uchar channel=0, const Size offset=0) const |
| Fill the provided array with the contents of this buffer. More...
|
|
Size | put (T2 **target, const Size length=0, uchar channels=0, const Size offset=0) const |
| Fill the provided 2D array with the contents of this buffer. More...
|
|
Size | putInterleaved (T2 *buffer, Size length=0, const Size offset=0) const |
| Puts the interleaved contents in the target buffer. More...
|
|
template<typename T, class STORAGE = HeapBuffer<T, DEFAULT_ALIGNMENT>>
class tklb::AudioRingBufferTpl< T, STORAGE >
Definition at line 8 of file TAudioRingBuffer.hpp.