7#include "audio_direction.hpp"
26 [[nodiscard]]
size_t index() const noexcept;
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(
size_t num_samples) noexcept;
Definition audio_channel.hpp:11
size_t clip_count() noexcept
The number of times the audio clipped since last read.
std::string name() const noexcept
The name of the audio channel according to the system.
bool enabled
If the channel is enabled by the user.
Definition audio_channel.hpp:21
float rms(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.
audio_direction direction() const noexcept
The direction of audio.
size_t index() const noexcept
The index of the audio channel.