#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "remoting/host/audio_silence_detector.h"
#include <stdlib.h>
#include "base/check_op.h"
namespace remoting {
namespace {
int kSilencePeriodThresholdSeconds = …;
}
AudioSilenceDetector::AudioSilenceDetector(int threshold)
: … { … }
AudioSilenceDetector::~AudioSilenceDetector() = default;
void AudioSilenceDetector::Reset(int sampling_rate, int channels) { … }
bool AudioSilenceDetector::IsSilence(const int16_t* samples, size_t frames) { … }
int AudioSilenceDetector::channels() const { … }
}