#include "modules/audio_processing/agc2/speech_probability_buffer.h"
#include <algorithm>
#include "rtc_base/checks.h"
namespace webrtc {
namespace {
constexpr float kActivityThreshold = …;
constexpr int kNumAnalysisFrames = …;
constexpr int kTransientWidthThreshold = …;
}
SpeechProbabilityBuffer::SpeechProbabilityBuffer(
float low_probability_threshold)
: … { … }
void SpeechProbabilityBuffer::Update(float probability) { … }
void SpeechProbabilityBuffer::RemoveTransient() { … }
bool SpeechProbabilityBuffer::IsActiveSegment() const { … }
void SpeechProbabilityBuffer::Reset() { … }
}