tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

echo_path_variability.h (1068B)


      1 /*
      2 *  Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
      3 *
      4 *  Use of this source code is governed by a BSD-style license
      5 *  that can be found in the LICENSE file in the root of the source
      6 *  tree. An additional intellectual property rights grant can be found
      7 *  in the file PATENTS.  All contributing project authors may
      8 *  be found in the AUTHORS file in the root of the source tree.
      9 */
     10 
     11 #ifndef MODULES_AUDIO_PROCESSING_AEC3_ECHO_PATH_VARIABILITY_H_
     12 #define MODULES_AUDIO_PROCESSING_AEC3_ECHO_PATH_VARIABILITY_H_
     13 
     14 namespace webrtc {
     15 
     16 struct EchoPathVariability {
     17  enum class DelayAdjustment { kNone, kBufferFlush, kNewDetectedDelay };
     18 
     19  EchoPathVariability(bool gain_change,
     20                      DelayAdjustment delay_change,
     21                      bool clock_drift);
     22 
     23  bool AudioPathChanged() const {
     24    return gain_change || delay_change != DelayAdjustment::kNone;
     25  }
     26  bool gain_change;
     27  DelayAdjustment delay_change;
     28  bool clock_drift;
     29 };
     30 
     31 }  // namespace webrtc
     32 
     33 #endif  // MODULES_AUDIO_PROCESSING_AEC3_ECHO_PATH_VARIABILITY_H_