chromium/remoting/host/audio_silence_detector.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "remoting/host/audio_silence_detector.h"

#include <stdlib.h>

#include "base/check_op.h"

namespace remoting {

namespace {

// Silence period threshold in seconds. Silence intervals shorter than this
// value are still encoded and sent to the client, so that we don't disrupt
// playback by dropping them.
int kSilencePeriodThresholdSeconds =;

}  // namespace

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 {}

}  // namespace remoting