12 #ifndef ROC_AUDIO_FRAME_H_
13 #define ROC_AUDIO_FRAME_H_
void set_flags(unsigned flags)
Set flags.
unsigned flags() const
Get flags.
Frame(sample_t *samples, size_t num_samples)
Construct frame from samples.
void print() const
Print frame to stderr.
void set_capture_timestamp(core::nanoseconds_t capture_ts)
Set unix-epoch timestamp in ns of the 1st sample.
size_t num_samples() const
Get frame data size.
@ FlagNonblank
Set if the frame has at least some samples from packets. If this flag is clear, frame is completely z...
@ FlagDrops
Set if some late packets were dropped while the frame was being built. It's not necessarty that the f...
@ FlagIncomplete
Set if the frame is not fully filled with samples from packets. If this flag is set,...
sample_t * samples() const
Get frame data.
core::nanoseconds_t capture_timestamp() const
Get unix-epoch timestamp in ns of the 1st sample.
Base class for non-copyable objects.
float sample_t
Audio sample.
int64_t nanoseconds_t
Nanoseconds.
Various units used in packets.