Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
| 2 * Copyright (c) 2016 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 WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_ECHO_CANCELLER3_H_ | |
| 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_ECHO_CANCELLER3_H_ | |
| 13 | |
| 14 #include <string> | |
| 15 | |
| 16 #include "webrtc/base/constructormagic.h" | |
| 17 #include "webrtc/modules/audio_processing/audio_buffer.h" | |
| 18 | |
| 19 namespace webrtc { | |
| 20 | |
| 21 class EchoCanceller3 { | |
| 22 public: | |
| 23 EchoCanceller3(int sample_rate_hz, bool use_anti_hum_filter); | |
| 24 ~EchoCanceller3(); | |
| 25 bool AnalyzeRender(AudioBuffer* farend) const; | |
|
hlundin-webrtc
2016/12/12 21:35:21
Method comments would be appreciated.
peah-webrtc
2016/12/13 11:23:02
Done.
| |
| 26 void AnalyzeCapture(AudioBuffer* capture); | |
| 27 void ProcessCapture(AudioBuffer* capture, bool known_echo_path_change); | |
| 28 | |
| 29 // Validates a config. | |
| 30 static bool Validate(const AudioProcessing::Config::EchoCanceller3& config); | |
| 31 // Dumps a config to a string. | |
| 32 static std::string ToString( | |
| 33 const AudioProcessing::Config::EchoCanceller3& config); | |
| 34 | |
| 35 private: | |
| 36 static int instance_count_; | |
| 37 size_t frame_length_; | |
| 38 | |
| 39 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(EchoCanceller3); | |
| 40 }; | |
| 41 } // namespace webrtc | |
| 42 | |
| 43 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_ECHO_CANCELLER3_H_ | |
| OLD | NEW |