#include <audio_buffer.h>
|
| AudioBuffer (size_t capacity) |
|
| ~AudioBuffer () |
|
void | silence (framecnt_t len, framecnt_t offset=0) |
|
void | read_from (const Sample *src, framecnt_t len, framecnt_t dst_offset=0, framecnt_t src_offset=0) |
|
void | read_from_with_gain (const Sample *src, framecnt_t len, gain_t gain, framecnt_t dst_offset=0, framecnt_t src_offset=0) |
|
void | read_from (const Buffer &src, framecnt_t len, framecnt_t dst_offset=0, framecnt_t src_offset=0) |
|
void | merge_from (const Buffer &src, framecnt_t len, framecnt_t dst_offset=0, framecnt_t src_offset=0) |
|
void | accumulate_from (const AudioBuffer &src, framecnt_t len, framecnt_t dst_offset=0, framecnt_t src_offset=0) |
|
void | accumulate_from (const Sample *src, framecnt_t len, framecnt_t dst_offset=0, framecnt_t src_offset=0) |
|
void | accumulate_with_gain_from (const AudioBuffer &src, framecnt_t len, gain_t gain_coeff, framecnt_t dst_offset=0, framecnt_t src_offset=0) |
|
void | accumulate_with_gain_from (const Sample *src_raw, framecnt_t len, gain_t gain_coeff, framecnt_t dst_offset=0) |
|
void | accumulate_with_ramped_gain_from (const Sample *src, framecnt_t len, gain_t initial, gain_t target, framecnt_t dst_offset=0) |
|
void | apply_gain (gain_t gain, framecnt_t len) |
|
void | set_data (Sample *data, size_t size) |
|
void | resize (size_t nframes) |
|
const Sample * | data (framecnt_t offset=0) const |
|
Sample * | data (framecnt_t offset=0) |
|
bool | check_silence (pframes_t, pframes_t &) const |
|
void | prepare () |
|
bool | written () const |
|
void | set_written (bool w) |
|
virtual | ~Buffer () |
|
size_t | capacity () const |
|
DataType | type () const |
|
bool | silent () const |
|
virtual void | clear () |
|
Buffer containing audio data.
Definition at line 30 of file audio_buffer.h.
AudioBuffer::AudioBuffer |
( |
size_t |
capacity | ) |
|
AudioBuffer::~AudioBuffer |
( |
| ) |
|
Acumulate (add) len frames src starting at src_offset into self starting at dst_offset
Definition at line 84 of file audio_buffer.h.
Acumulate (add) len frames src starting at src_offset into self starting at dst_offset
Definition at line 98 of file audio_buffer.h.
Acumulate (add) len frames src starting at src_offset into self starting at scaling by gain_coeff
Definition at line 113 of file audio_buffer.h.
Accumulate (add) len frames FROM THE START OF src into self scaling by gain_coeff
Definition at line 133 of file audio_buffer.h.
Accumulate (add) len frames FROM THE START OF src into self scaling by gain_coeff
Definition at line 148 of file audio_buffer.h.
Acumulate (add) len frames src starting at src_offset into self starting at dst_offset
Implements ARDOUR::Buffer.
Definition at line 77 of file audio_buffer.h.
void ARDOUR::AudioBuffer::prepare |
( |
| ) |
|
|
inline |
Read len frames src starting at src_offset into self starting at @ dst_offset
Definition at line 39 of file audio_buffer.h.
Read len frames src starting at src_offset into self starting at @ dst_offset
Implements ARDOUR::Buffer.
Definition at line 61 of file audio_buffer.h.
void AudioBuffer::resize |
( |
size_t |
nframes | ) |
|
|
virtual |
Reallocate the buffer used internally to handle at least of data
Constructor MUST have been passed capacity!=0 or this will die (to prevent mem leaks).
Implements ARDOUR::Buffer.
Definition at line 50 of file audio_buffer.cc.
void ARDOUR::AudioBuffer::set_data |
( |
Sample * |
data, |
|
|
size_t |
size |
|
) |
| |
|
inline |
Set the data contained by this buffer manually (for setting directly to jack buffer).
Constructor MUST have been passed capacity=0 or this will die (to prevent mem leaks).
Definition at line 173 of file audio_buffer.h.
void ARDOUR::AudioBuffer::set_written |
( |
bool |
w | ) |
|
|
inline |
bool ARDOUR::AudioBuffer::written |
( |
| ) |
const |
|
inline |
Sample* ARDOUR::AudioBuffer::_data |
|
private |
bool ARDOUR::AudioBuffer::_owns_data |
|
private |
bool ARDOUR::AudioBuffer::_written |
|
private |
The documentation for this class was generated from the following files: