Index: webrtc/modules/audio_processing/agc2/agc2_impl.h |
diff --git a/webrtc/modules/audio_processing/agc2/agc2_impl.h b/webrtc/modules/audio_processing/agc2/agc2_impl.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8f455de7416467ec7687609f567a66463370236e |
--- /dev/null |
+++ b/webrtc/modules/audio_processing/agc2/agc2_impl.h |
@@ -0,0 +1,48 @@ |
+/* |
+ * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
+ * |
+ * Use of this source code is governed by a BSD-style license |
+ * that can be found in the LICENSE file in the root of the source |
+ * tree. An additional intellectual property rights grant can be found |
+ * in the file PATENTS. All contributing project authors may |
+ * be found in the AUTHORS file in the root of the source tree. |
+ */ |
+ |
+#ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AGC2_AGC2_IMPL_H_ |
+#define WEBRTC_MODULES_AUDIO_PROCESSING_AGC2_AGC2_IMPL_H_ |
+ |
+#include <string> |
+ |
+#include "webrtc/base/constructormagic.h" |
+#include "webrtc/base/criticalsection.h" |
+#include "webrtc/modules/audio_processing/agc2/agc2.h" |
+#include "webrtc/modules/audio_processing/include/audio_processing.h" |
+ |
+namespace webrtc { |
+ |
+// Adaptive Gain Control 2 (AGC2) is an alternative gain control module meant |
+// to replace the previous AGC, the implementation of which is distributed |
+// across several classes (namely, GainControlImpl, |
+// GainControlForExperimentalAgc, AgcManagerDirect and Agc). |
+// TODO(alessiob, aleloi): Make the changes listed below. |
+// In addition to reorganizing the code, AGC2 also includes the following |
+// changes: |
+// - it switches to floating point, replacing the fixed point analysis of the |
+// legacy AGC; |
+// - it does not work in the band split domain. |
aleloi
2017/05/02 10:11:53
A few points from peah's list are worth mentioning
AleBzk
2017/05/02 11:31:54
I realized that maybe we want to document only wha
peah-webrtc
2017/05/02 11:45:20
That makes sense. I don't think the comment needs
|
+class Agc2Impl : public Agc2 { |
+ public: |
+ explicit Agc2Impl(rtc::CriticalSection* crit); |
peah-webrtc
2017/05/02 11:01:08
If this API is not public, you don't need to bothe
AleBzk
2017/05/02 15:42:51
Acknowledged.
|
+ ~Agc2Impl() override; |
+ |
+ static bool Validate(const AudioProcessing::Config::Agc2& config); |
+ static std::string ToString(const AudioProcessing::Config::Agc2& config); |
+ |
+ private: |
+ rtc::CriticalSection* const crit_; |
+ RTC_DISALLOW_COPY_AND_ASSIGN(Agc2Impl); |
+}; |
+ |
+} // namespace webrtc |
+ |
+#endif // WEBRTC_MODULES_AUDIO_PROCESSING_AGC2_AGC2_IMPL_H_ |