#include "media/base/audio_power_monitor.h"
#include <algorithm>
#include <cmath>
#include "base/check_op.h"
#include "base/time/time.h"
#include "media/base/audio_bus.h"
#include "media/base/vector_math.h"
namespace media {
AudioPowerMonitor::AudioPowerMonitor(int sample_rate,
base::TimeDelta time_constant)
: … { … }
AudioPowerMonitor::~AudioPowerMonitor() = default;
void AudioPowerMonitor::Reset() { … }
void AudioPowerMonitor::Scan(const AudioBus& buffer, int num_frames) { … }
std::pair<float, bool> AudioPowerMonitor::ReadCurrentPowerAndClip() { … }
}