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

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: comments addressed Created 3 years, 3 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 } param; 319 } param;
320 bool enabled = false; 320 bool enabled = false;
321 } echo_canceller3; 321 } echo_canceller3;
322 322
323 // Enables the next generation AGC functionality. This feature replaces the 323 // Enables the next generation AGC functionality. This feature replaces the
324 // standard methods of gain control in the previous AGC. 324 // standard methods of gain control in the previous AGC.
325 // The functionality is not yet activated in the code and turning this on 325 // The functionality is not yet activated in the code and turning this on
326 // does not yet have the desired behavior. 326 // does not yet have the desired behavior.
327 struct GainController2 { 327 struct GainController2 {
328 bool enabled = false; 328 bool enabled = false;
329 // Fixed digital gain params.
330 float fixed_gain_db = 0.f;
329 } gain_controller2; 331 } gain_controller2;
330 332
331 // Explicit copy assignment implementation to avoid issues with memory 333 // Explicit copy assignment implementation to avoid issues with memory
332 // sanitizer complaints in case of self-assignment. 334 // sanitizer complaints in case of self-assignment.
333 // TODO(peah): Add buildflag to ensure that this is only included for memory 335 // TODO(peah): Add buildflag to ensure that this is only included for memory
334 // sanitizer builds. 336 // sanitizer builds.
335 Config& operator=(const Config& config) { 337 Config& operator=(const Config& config) {
336 if (this != &config) { 338 if (this != &config) {
337 memcpy(this, &config, sizeof(*this)); 339 memcpy(this, &config, sizeof(*this));
338 } 340 }
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
1132 // This does not impact the size of frames passed to |ProcessStream()|. 1134 // This does not impact the size of frames passed to |ProcessStream()|.
1133 virtual int set_frame_size_ms(int size) = 0; 1135 virtual int set_frame_size_ms(int size) = 0;
1134 virtual int frame_size_ms() const = 0; 1136 virtual int frame_size_ms() const = 0;
1135 1137
1136 protected: 1138 protected:
1137 virtual ~VoiceDetection() {} 1139 virtual ~VoiceDetection() {}
1138 }; 1140 };
1139 } // namespace webrtc 1141 } // namespace webrtc
1140 1142
1141 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ 1143 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698