Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Side by Side Diff: webrtc/modules/audio_processing/include/audio_processing.h

Issue 2625323002: Enable residual echo detector on mobile platforms. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 struct Config { 246 struct Config {
247 struct LevelController { 247 struct LevelController {
248 bool enabled = false; 248 bool enabled = false;
249 249
250 // Sets the initial peak level to use inside the level controller in order 250 // Sets the initial peak level to use inside the level controller in order
251 // to compute the signal gain. The unit for the peak level is dBFS and 251 // to compute the signal gain. The unit for the peak level is dBFS and
252 // the allowed range is [-100, 0]. 252 // the allowed range is [-100, 0].
253 float initial_peak_level_dbfs = -6.0206f; 253 float initial_peak_level_dbfs = -6.0206f;
254 } level_controller; 254 } level_controller;
255 struct ResidualEchoDetector { 255 struct ResidualEchoDetector {
256 #if defined(WEBRTC_ANDROID) || defined(WEBRTC_IOS)
257 bool enabled = false;
258 #else
259 bool enabled = true; 256 bool enabled = true;
260 #endif
261 } residual_echo_detector; 257 } residual_echo_detector;
262 258
263 struct HighPassFilter { 259 struct HighPassFilter {
264 bool enabled = false; 260 bool enabled = false;
265 } high_pass_filter; 261 } high_pass_filter;
266 262
267 // Enables the next generation AEC functionality. This feature replaces the 263 // Enables the next generation AEC functionality. This feature replaces the
268 // standard methods for echo removal in the AEC. 264 // standard methods for echo removal in the AEC.
269 // The functionality is not yet activated in the code and turning this on 265 // The functionality is not yet activated in the code and turning this on
270 // does not yet have the desired behavior. 266 // does not yet have the desired behavior.
(...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after
1078 // This does not impact the size of frames passed to |ProcessStream()|. 1074 // This does not impact the size of frames passed to |ProcessStream()|.
1079 virtual int set_frame_size_ms(int size) = 0; 1075 virtual int set_frame_size_ms(int size) = 0;
1080 virtual int frame_size_ms() const = 0; 1076 virtual int frame_size_ms() const = 0;
1081 1077
1082 protected: 1078 protected:
1083 virtual ~VoiceDetection() {} 1079 virtual ~VoiceDetection() {}
1084 }; 1080 };
1085 } // namespace webrtc 1081 } // namespace webrtc
1086 1082
1087 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ 1083 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698