Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |