Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::test::audio::BufferMetrics Struct Reference

Whole-buffer facts. channels.size() == channel count. More...

#include <audio_metrics.hpp>

Public Member Functions

bool has_nan_or_inf () const
double max_peak () const
 Max per-channel peak, linear.
double max_rms () const
 Max per-channel RMS, linear.
std::uint64_t total_clipped_samples () const

Public Attributes

int num_channels = 0
int num_frames = 0
double sample_rate = 0.0
std::vector< ChannelMetrics > channels

Detailed Description

Whole-buffer facts. channels.size() == channel count.

Member Function Documentation

◆ has_nan_or_inf()

bool pulp::test::audio::BufferMetrics::has_nan_or_inf ( ) const

◆ max_peak()

double pulp::test::audio::BufferMetrics::max_peak ( ) const

Max per-channel peak, linear.

◆ max_rms()

double pulp::test::audio::BufferMetrics::max_rms ( ) const

Max per-channel RMS, linear.

◆ total_clipped_samples()

std::uint64_t pulp::test::audio::BufferMetrics::total_clipped_samples ( ) const

Member Data Documentation

◆ channels

std::vector<ChannelMetrics> pulp::test::audio::BufferMetrics::channels

◆ num_channels

int pulp::test::audio::BufferMetrics::num_channels = 0

◆ num_frames

int pulp::test::audio::BufferMetrics::num_frames = 0

◆ sample_rate

double pulp::test::audio::BufferMetrics::sample_rate = 0.0

The documentation for this struct was generated from the following file:
  • /home/runner/work/pulp/pulp/tools/audio/analysis/include/pulp/audio/analysis/audio_metrics.hpp