HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
audio_block.hpp
1// Copyright Take Vos 2020-2021.
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
4
5#pragma once
6
7#include "../chrono.hpp"
8#include "../utility/module.hpp"
9#include "../SIMD/module.hpp"
10#include <span>
11
12namespace hi::inline v1 {
13
14enum class audio_block_state { normal, silent, corrupt };
15
25public:
35 float **samples;
36
40
44
49
52 int64_t sample_count;
53
56 utc_nanoseconds time_stamp;
57
70 audio_block_state state;
71};
72
73} // namespace hi::inline v1
DOXYGEN BUG.
Definition algorithm.hpp:13
A block of audio data.
Definition audio_block.hpp:24
int64_t sample_count
The sample count value for the first sample in the sample buffers.
Definition audio_block.hpp:52
audio_block_state state
The state of the audio block.
Definition audio_block.hpp:70
std::size_t num_samples
Number of samples for each channel in samples.
Definition audio_block.hpp:39
float ** samples
A list of pointers to non-interleaved sample buffers.
Definition audio_block.hpp:35
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:56
std::size_t num_channels
Number of channels in samples.
Definition audio_block.hpp:43
int sample_rate
The sample rate this block was taken at.
Definition audio_block.hpp:48