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

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

Issue 2995043002: AGC2 dummy module: fixed gain param, APM integration, audioproc_f adaptation (Closed)
Patch Set: UT fix Created 3 years, 4 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 struct EchoCanceller3 { 269 struct EchoCanceller3 {
270 bool enabled = false; 270 bool enabled = false;
271 } echo_canceller3; 271 } echo_canceller3;
272 272
273 // Enables the next generation AGC functionality. This feature replaces the 273 // Enables the next generation AGC functionality. This feature replaces the
274 // standard methods of gain control in the previous AGC. 274 // standard methods of gain control in the previous AGC.
275 // The functionality is not yet activated in the code and turning this on 275 // The functionality is not yet activated in the code and turning this on
276 // does not yet have the desired behavior. 276 // does not yet have the desired behavior.
277 struct GainController2 { 277 struct GainController2 {
278 bool enabled = false; 278 bool enabled = false;
279 // Fixed digital gain params.
280 float fixed_gain_db = 5.f;
279 } gain_controller2; 281 } gain_controller2;
280 }; 282 };
281 283
282 // TODO(mgraczyk): Remove once all methods that use ChannelLayout are gone. 284 // TODO(mgraczyk): Remove once all methods that use ChannelLayout are gone.
283 enum ChannelLayout { 285 enum ChannelLayout {
284 kMono, 286 kMono,
285 // Left, right. 287 // Left, right.
286 kStereo, 288 kStereo,
287 // Mono, keyboard, and mic. 289 // Mono, keyboard, and mic.
288 kMonoAndKeyboard, 290 kMonoAndKeyboard,
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
1098 // This does not impact the size of frames passed to |ProcessStream()|. 1100 // This does not impact the size of frames passed to |ProcessStream()|.
1099 virtual int set_frame_size_ms(int size) = 0; 1101 virtual int set_frame_size_ms(int size) = 0;
1100 virtual int frame_size_ms() const = 0; 1102 virtual int frame_size_ms() const = 0;
1101 1103
1102 protected: 1104 protected:
1103 virtual ~VoiceDetection() {} 1105 virtual ~VoiceDetection() {}
1104 }; 1106 };
1105 } // namespace webrtc 1107 } // namespace webrtc
1106 1108
1107 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ 1109 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698