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

Side by Side Diff: webrtc/modules/audio_processing/agc2/gain_controller2.h

Issue 2848593002: AGC2 as a new APM sub-module operating with hard-coded gain. (Closed)
Patch Set: mock and iface removed, mv agc2 gain_controller2 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
(Empty)
1 /*
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AGC2_GAIN_CONTROLLER2_H_
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AGC2_GAIN_CONTROLLER2_H_
13
14 #include <string>
15
16 #include "webrtc/base/constructormagic.h"
17 #include "webrtc/modules/audio_processing/include/audio_processing.h"
18
19 namespace webrtc {
20
21 // Gain Controller 2 is an alternative gain control module that will entirely
peah-webrtc 2017/05/05 20:44:10 I'd prefer a comment which describes what the clas
AleBzk 2017/05/16 12:38:43 Done.
22 // replace the existing AGC, the implementation of which is distributed across
23 // several classes (namely, GainControlImpl, GainControlForExperimentalAgc,
24 // AgcManagerDirect and Agc).
25 // Gain Control 2 temporarily implements the fixed gain mode only, and it has
26 // the following features:
27 // - not operating in the band split domain;
28 // - implemented with floating point.
29 class GainController2 {
30 public:
31 GainController2();
32 ~GainController2();
33
34 static bool Validate(const AudioProcessing::Config::GainController2& config);
35 static std::string ToString(
36 const AudioProcessing::Config::GainController2& config);
37
38 private:
39 RTC_DISALLOW_COPY_AND_ASSIGN(GainController2);
40 };
41
42 } // namespace webrtc
43
44 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AGC2_GAIN_CONTROLLER2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698