7#include "../chrono.hpp"
8#include "../required.hpp"
9#include "../assert.hpp"
10#include "../rapid/numeric_array.hpp"
15enum class audio_block_state { normal, silent, corrupt };
A block of audio data.
Definition audio_block.hpp:25
int64_t sample_count
The sample count value for the first sample in the sample buffers.
Definition audio_block.hpp:53
size_t num_channels
Number of channels in samples.
Definition audio_block.hpp:44
audio_block_state state
The state of the audio block.
Definition audio_block.hpp:71
float ** samples
A list of pointers to non-interleaved sample buffers.
Definition audio_block.hpp:36
int sample_rate
The sample rate this block was taken at.
Definition audio_block.hpp:49
utc_nanoseconds time_stamp
Time point when the sample was at the input or will be at the output of the audio interface.
Definition audio_block.hpp:57
size_t num_samples
Number of samples for each channel in samples.
Definition audio_block.hpp:40