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

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

Issue 2493753002: Add AudioOption for residual echo detector, and enable it by default on non-mobile platforms. (Closed)
Patch Set: Removed mediaconstraint. Created 4 years, 1 month 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 | « webrtc/media/engine/webrtcvoiceengine.cc ('k') | 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 struct Config { 252 struct Config {
253 struct LevelController { 253 struct LevelController {
254 bool enabled = false; 254 bool enabled = false;
255 255
256 // Sets the initial peak level to use inside the level controller in order 256 // Sets the initial peak level to use inside the level controller in order
257 // to compute the signal gain. The unit for the peak level is dBFS and 257 // to compute the signal gain. The unit for the peak level is dBFS and
258 // the allowed range is [-100, 0]. 258 // the allowed range is [-100, 0].
259 float initial_peak_level_dbfs = -6.0206f; 259 float initial_peak_level_dbfs = -6.0206f;
260 } level_controller; 260 } level_controller;
261 struct ResidualEchoDetector { 261 struct ResidualEchoDetector {
262 #if defined(WEBRTC_ANDROID) || defined(WEBRTC_IOS)
262 bool enabled = false; 263 bool enabled = false;
264 #else
265 bool enabled = true;
266 #endif
263 } residual_echo_detector; 267 } residual_echo_detector;
264 }; 268 };
265 269
266 // TODO(mgraczyk): Remove once all methods that use ChannelLayout are gone. 270 // TODO(mgraczyk): Remove once all methods that use ChannelLayout are gone.
267 enum ChannelLayout { 271 enum ChannelLayout {
268 kMono, 272 kMono,
269 // Left, right. 273 // Left, right.
270 kStereo, 274 kStereo,
271 // Mono, keyboard, and mic. 275 // Mono, keyboard, and mic.
272 kMonoAndKeyboard, 276 kMonoAndKeyboard,
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 // This does not impact the size of frames passed to |ProcessStream()|. 1076 // This does not impact the size of frames passed to |ProcessStream()|.
1073 virtual int set_frame_size_ms(int size) = 0; 1077 virtual int set_frame_size_ms(int size) = 0;
1074 virtual int frame_size_ms() const = 0; 1078 virtual int frame_size_ms() const = 0;
1075 1079
1076 protected: 1080 protected:
1077 virtual ~VoiceDetection() {} 1081 virtual ~VoiceDetection() {}
1078 }; 1082 };
1079 } // namespace webrtc 1083 } // namespace webrtc
1080 1084
1081 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ 1085 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_
OLDNEW
« no previous file with comments | « webrtc/media/engine/webrtcvoiceengine.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698