7#include "../time/time.hpp"
8#include "../utility/utility.hpp"
9#include "../macros.hpp"
10#include <hikocpu/hikocpu.hpp>
13hi_export_module(hikogui.audio.audio_block);
15hi_export
namespace hi {
inline namespace v1 {
17hi_export
enum class audio_block_state { normal, silent, corrupt };
The HikoGUI namespace.
Definition array_generic.hpp:20
DOXYGEN BUG.
Definition algorithm_misc.hpp:20
A block of audio data.
Definition audio_block.hpp:27
int64_t sample_count
The sample count value for the first sample in the sample buffers.
Definition audio_block.hpp:55
int sample_rate
The sample rate this block was taken at.
Definition audio_block.hpp:51
std::size_t num_samples
Number of samples for each channel in samples.
Definition audio_block.hpp:42
std::size_t num_channels
Number of channels in samples.
Definition audio_block.hpp:46
audio_block_state state
The state of the audio block.
Definition audio_block.hpp:73
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:59
float ** samples
A list of pointers to non-interleaved sample buffers.
Definition audio_block.hpp:38