Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Audio frame. More...
#include <frame.h>
Public Types | |
enum | { FlagNonblank = (1 << 0) , FlagIncomplete = (1 << 1) , FlagDrops = (1 << 2) } |
Frame flags. More... | |
Public Member Functions | |
Frame (sample_t *samples, size_t num_samples) | |
Construct frame from samples. More... | |
void | set_flags (unsigned flags) |
Set flags. More... | |
unsigned | flags () const |
Get flags. More... | |
sample_t * | samples () const |
Get frame data. More... | |
size_t | num_samples () const |
Get frame data size. More... | |
core::nanoseconds_t | capture_timestamp () const |
Get unix-epoch timestamp in ns of the 1st sample. More... | |
void | set_capture_timestamp (core::nanoseconds_t capture_ts) |
Set unix-epoch timestamp in ns of the 1st sample. More... | |
void | print () const |
Print frame to stderr. More... | |
anonymous enum |
Frame flags.
roc::audio::Frame::Frame | ( | sample_t * | samples, |
size_t | num_samples | ||
) |
Construct frame from samples.
core::nanoseconds_t roc::audio::Frame::capture_timestamp | ( | ) | const |
Get unix-epoch timestamp in ns of the 1st sample.
unsigned roc::audio::Frame::flags | ( | ) | const |
Get flags.
size_t roc::audio::Frame::num_samples | ( | ) | const |
Get frame data size.
void roc::audio::Frame::print | ( | ) | const |
Print frame to stderr.
sample_t* roc::audio::Frame::samples | ( | ) | const |
Get frame data.
void roc::audio::Frame::set_capture_timestamp | ( | core::nanoseconds_t | capture_ts | ) |
Set unix-epoch timestamp in ns of the 1st sample.
void roc::audio::Frame::set_flags | ( | unsigned | flags | ) |
Set flags.