| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_AEC_STATE_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_AEC_STATE_H_ |
| 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_AEC_STATE_H_ | 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_AEC_STATE_H_ |
| 13 | 13 |
| 14 #include <algorithm> | 14 #include <algorithm> |
| 15 #include <memory> | 15 #include <memory> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "webrtc/base/array_view.h" |
| 19 #include "webrtc/base/constructormagic.h" |
| 20 #include "webrtc/base/optional.h" |
| 18 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" | 21 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" |
| 19 #include "webrtc/modules/audio_processing/aec3/echo_path_variability.h" | 22 #include "webrtc/modules/audio_processing/aec3/echo_path_variability.h" |
| 20 #include "webrtc/modules/audio_processing/aec3/erl_estimator.h" | 23 #include "webrtc/modules/audio_processing/aec3/erl_estimator.h" |
| 21 #include "webrtc/modules/audio_processing/aec3/erle_estimator.h" | 24 #include "webrtc/modules/audio_processing/aec3/erle_estimator.h" |
| 22 #include "webrtc/modules/audio_processing/aec3/render_buffer.h" | 25 #include "webrtc/modules/audio_processing/aec3/render_buffer.h" |
| 23 #include "webrtc/rtc_base/array_view.h" | |
| 24 #include "webrtc/rtc_base/constructormagic.h" | |
| 25 #include "webrtc/rtc_base/optional.h" | |
| 26 | 26 |
| 27 namespace webrtc { | 27 namespace webrtc { |
| 28 | 28 |
| 29 class ApmDataDumper; | 29 class ApmDataDumper; |
| 30 | 30 |
| 31 // Handles the state and the conditions for the echo removal functionality. | 31 // Handles the state and the conditions for the echo removal functionality. |
| 32 class AecState { | 32 class AecState { |
| 33 public: | 33 public: |
| 34 explicit AecState(float echo_decay); | 34 explicit AecState(float echo_decay); |
| 35 ~AecState(); | 35 ~AecState(); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 rtc::Optional<size_t> filter_delay_; | 113 rtc::Optional<size_t> filter_delay_; |
| 114 rtc::Optional<size_t> external_delay_; | 114 rtc::Optional<size_t> external_delay_; |
| 115 size_t blocks_since_last_saturation_ = 1000; | 115 size_t blocks_since_last_saturation_ = 1000; |
| 116 const float echo_decay_factor_; | 116 const float echo_decay_factor_; |
| 117 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AecState); | 117 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AecState); |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 } // namespace webrtc | 120 } // namespace webrtc |
| 121 | 121 |
| 122 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_AEC_STATE_H_ | 122 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_AEC_STATE_H_ |
| OLD | NEW |