tor-browser

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

builtin_audio_processing_builder.cc (1241B)


      1 /*
      2 *  Copyright (c) 2024 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 #include "api/audio/builtin_audio_processing_builder.h"
     11 
     12 #include <utility>
     13 
     14 #include "absl/base/nullability.h"
     15 #include "api/audio/audio_processing.h"
     16 #include "api/environment/environment.h"
     17 #include "api/make_ref_counted.h"
     18 #include "api/scoped_refptr.h"
     19 #include "modules/audio_processing/audio_processing_impl.h"
     20 
     21 namespace webrtc {
     22 
     23 absl_nullable scoped_refptr<AudioProcessing>
     24 BuiltinAudioProcessingBuilder::Build(const Environment& env) {
     25  return make_ref_counted<AudioProcessingImpl>(
     26      env, config_, echo_canceller_config_, echo_canceller_multichannel_config_,
     27      std::move(capture_post_processing_), std::move(render_pre_processing_),
     28      std::move(echo_control_factory_), std::move(echo_detector_),
     29      std::move(capture_analyzer_), std::move(neural_residual_echo_estimator_));
     30 }
     31 
     32 }  // namespace webrtc