7#include "audio_direction.hpp"
9namespace hi::inline
v1 {
30 [[nodiscard]] audio_direction
direction() const noexcept;
34 [[nodiscard]]
std::
string id() const noexcept;
38 [[nodiscard]]
std::
string name() const noexcept;
46 [[nodiscard]]
float peak() noexcept;
53 [[nodiscard]]
float rms(
std::
size_t num_samples) noexcept;
DOXYGEN BUG.
Definition algorithm.hpp:13
Definition audio_channel.hpp:11
std::size_t index() const noexcept
The index of the audio channel.
std::size_t clip_count() noexcept
The number of times the audio clipped since last read.
float rms(std::size_t num_samples) noexcept
Get the running-RMS over the given number of samples.
float peak() noexcept
The maximum peak sample value since last read.
bool enabled
If the channel is enabled by the user.
Definition audio_channel.hpp:21
audio_direction direction() const noexcept
The direction of audio.
std::string name() const noexcept
The name of the audio channel according to the system.