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

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

Issue 2848593002: AGC2 as a new APM sub-module operating with hard-coded gain. (Closed)
Patch Set: unneeded DCHECK removed Created 3 years, 7 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
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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 bool enabled = false; 260 bool enabled = false;
261 } high_pass_filter; 261 } high_pass_filter;
262 262
263 // Enables the next generation AEC functionality. This feature replaces the 263 // Enables the next generation AEC functionality. This feature replaces the
264 // standard methods for echo removal in the AEC. 264 // standard methods for echo removal in the AEC.
265 // 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
266 // does not yet have the desired behavior. 266 // does not yet have the desired behavior.
267 struct EchoCanceller3 { 267 struct EchoCanceller3 {
268 bool enabled = false; 268 bool enabled = false;
269 } echo_canceller3; 269 } echo_canceller3;
270
271 // Enables the next generation AGC functionality. This feature replaces the
272 // standard methods of gain control in the previous AGC.
273 // The functionality is not yet activated in the code and turning this on
274 // does not yet have the desired behavior.
275 struct GainController2 {
276 bool enabled = false;
277 } gain_controller2;
270 }; 278 };
271 279
272 // TODO(mgraczyk): Remove once all methods that use ChannelLayout are gone. 280 // TODO(mgraczyk): Remove once all methods that use ChannelLayout are gone.
273 enum ChannelLayout { 281 enum ChannelLayout {
274 kMono, 282 kMono,
275 // Left, right. 283 // Left, right.
276 kStereo, 284 kStereo,
277 // Mono, keyboard, and mic. 285 // Mono, keyboard, and mic.
278 kMonoAndKeyboard, 286 kMonoAndKeyboard,
279 // Left, right, keyboard, and mic. 287 // Left, right, keyboard, and mic.
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 // This does not impact the size of frames passed to |ProcessStream()|. 1082 // This does not impact the size of frames passed to |ProcessStream()|.
1075 virtual int set_frame_size_ms(int size) = 0; 1083 virtual int set_frame_size_ms(int size) = 0;
1076 virtual int frame_size_ms() const = 0; 1084 virtual int frame_size_ms() const = 0;
1077 1085
1078 protected: 1086 protected:
1079 virtual ~VoiceDetection() {} 1087 virtual ~VoiceDetection() {}
1080 }; 1088 };
1081 } // namespace webrtc 1089 } // namespace webrtc
1082 1090
1083 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ 1091 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698