Ardour
9.0-pre0-582-g084a23a80d
|
#include <playback_buffer.h>
Public Member Functions | |
PlaybackBuffer (size_t sz, size_t res=8191) | |
virtual | ~PlaybackBuffer () |
T * | buffer () |
size_t | bufsize () const |
void | reset () |
void | align_to (PlaybackBuffer const &other) |
size_t | write_space () const |
size_t | read_space () const |
size_t | overwritable_at (size_t r) const |
size_t | read (T *dest, size_t cnt, bool commit=true, size_t offset=0) |
size_t | write (T const *src, size_t cnt) |
size_t | write_zero (size_t cnt) |
size_t | increment_write_ptr (size_t cnt) |
size_t | decrement_read_ptr (size_t cnt) |
size_t | increment_read_ptr (size_t cnt) |
bool | can_seek (int64_t cnt) |
size_t | read_ptr () const |
size_t | write_ptr () const |
size_t | reserved_size () const |
size_t | reservation_size () const |
Static Public Member Functions | |
static size_t | power_of_two_size (size_t sz) |
Private Attributes | |
T * | buf |
const size_t | reservation |
size_t | size |
size_t | size_mask |
std::atomic< size_t > | write_idx |
std::atomic< size_t > | read_idx |
std::atomic< size_t > | reserved |
spinlock_t | _reservation_lock |
Glib::Threads::Mutex | _reset_lock |
Definition at line 34 of file playback_buffer.h.
|
inline |
Definition at line 43 of file playback_buffer.h.
|
inlinevirtual |
Definition at line 55 of file playback_buffer.h.
|
inline |
Definition at line 75 of file playback_buffer.h.
|
inline |
Definition at line 60 of file playback_buffer.h.
|
inline |
Definition at line 62 of file playback_buffer.h.
|
inline |
Definition at line 184 of file playback_buffer.h.
|
inline |
Definition at line 154 of file playback_buffer.h.
|
inline |
Definition at line 172 of file playback_buffer.h.
|
inline |
Definition at line 146 of file playback_buffer.h.
|
inline |
Definition at line 127 of file playback_buffer.h.
|
inlinestatic |
Definition at line 37 of file playback_buffer.h.
size_t PBD::PlaybackBuffer< T >::read | ( | T * | dest, |
size_t | cnt, | ||
bool | commit = true , |
||
size_t | offset = 0 |
||
) |
Definition at line 284 of file playback_buffer.h.
|
inline |
Definition at line 194 of file playback_buffer.h.
|
inline |
Definition at line 113 of file playback_buffer.h.
|
inline |
Definition at line 197 of file playback_buffer.h.
|
inline |
Definition at line 196 of file playback_buffer.h.
|
inline |
Definition at line 65 of file playback_buffer.h.
size_t PBD::PlaybackBuffer< T >::write | ( | T const * | src, |
size_t | cnt | ||
) |
Definition at line 216 of file playback_buffer.h.
|
inline |
Definition at line 195 of file playback_buffer.h.
|
inline |
Definition at line 84 of file playback_buffer.h.
size_t PBD::PlaybackBuffer< T >::write_zero | ( | size_t | cnt | ) |
Definition at line 250 of file playback_buffer.h.
|
private |
Definition at line 210 of file playback_buffer.h.
|
private |
Definition at line 212 of file playback_buffer.h.
|
private |
Definition at line 200 of file playback_buffer.h.
|
mutableprivate |
Definition at line 206 of file playback_buffer.h.
|
private |
Definition at line 201 of file playback_buffer.h.
|
mutableprivate |
Definition at line 207 of file playback_buffer.h.
|
private |
Definition at line 202 of file playback_buffer.h.
|
private |
Definition at line 203 of file playback_buffer.h.
|
mutableprivate |
Definition at line 205 of file playback_buffer.h.