class PowerChecker

Defined at line 76 of file ../../src/media/audio/lib/analysis/dropout.h

PowerChecker verifies that a stream contains a signal of expected power.

It calculates an audio section's power, returning false if this does not meet the expected val.

This checker includes each sample in exactly one calculation (it does not use overlapping RMS

windows). E.g., for a 512-sample window, the first RMS check is based on samples 0-511, and the

second check based on samples 512-1023 (modulo any intervening Reset() calls).

For simplicity, this class is currently limited to FLOAT data only.

Public Methods

void PowerChecker (int64_t rms_window_in_frames, int32_t channels, double expected_min_power_rms, const std::string_view & tag)

Defined at line 78 of file ../../src/media/audio/lib/analysis/dropout.h

void Reset ()

Defined at line 87 of file ../../src/media/audio/lib/analysis/dropout.h

bool Check (const float * samples, int64_t frame_position, int64_t frame_count, bool print)

Defined at line 92 of file ../../src/media/audio/lib/analysis/dropout.h