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

Options for analyze(). More...

#include <audio_metrics.hpp>

Public Attributes

float clip_threshold = 1.0f
 |sample| >= this linear level counts as clipped (1.0 == 0 dBFS).
float silence_threshold = 3.1623e-5f
 |sample| < this linear level counts toward a silence run (default −90 dBFS: below 16-bit dither, above denormal noise).

Detailed Description

Options for analyze().

Defaults match the harness plan's threshold policy: they are named here once instead of being magic numbers in call sites.

Member Data Documentation

◆ clip_threshold

float pulp::test::audio::AnalyzeOptions::clip_threshold = 1.0f

|sample| >= this linear level counts as clipped (1.0 == 0 dBFS).

◆ silence_threshold

float pulp::test::audio::AnalyzeOptions::silence_threshold = 3.1623e-5f

|sample| < this linear level counts toward a silence run (default −90 dBFS: below 16-bit dither, above denormal noise).


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