|
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. | |
| void | set_flags (unsigned flags) |
| Set flags. | |
| unsigned | flags () const |
| Get flags. | |
| sample_t * | samples () const |
| Get frame data. | |
| size_t | num_samples () const |
| Get frame data size. | |
| void | print () const |
| Print frame to stderr. | |
| anonymous enum |
Frame flags.
| roc::audio::Frame::Frame | ( | sample_t * | samples, |
| size_t | num_samples | ||
| ) |
Construct frame from samples.
| 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_flags | ( | unsigned | flags | ) |
Set flags.