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

Unified Diff: webrtc/modules/audio_processing/gain_control_for_experimental_agc.h

Issue 2457783003: Added offline data logpoints and logging functionality to the gain controller (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_processing/gain_control_for_experimental_agc.h
diff --git a/webrtc/modules/audio_processing/gain_control_for_experimental_agc.h b/webrtc/modules/audio_processing/gain_control_for_experimental_agc.h
index 4fbd05c6850964824efbe9c195c102cfdfd81a52..75d87d17c3336f63e35323f789729e4daa93a0a4 100644
--- a/webrtc/modules/audio_processing/gain_control_for_experimental_agc.h
+++ b/webrtc/modules/audio_processing/gain_control_for_experimental_agc.h
@@ -19,6 +19,8 @@
namespace webrtc {
+class ApmDataDumper;
+
// This class has two main purposes:
//
// 1) It is returned instead of the real GainControl after the new AGC has been
@@ -33,8 +35,9 @@ namespace webrtc {
class GainControlForExperimentalAgc : public GainControl,
public VolumeCallbacks {
public:
- explicit GainControlForExperimentalAgc(GainControl* gain_control,
- rtc::CriticalSection* crit_capture);
+ GainControlForExperimentalAgc(GainControl* gain_control,
+ rtc::CriticalSection* crit_capture);
+ ~GainControlForExperimentalAgc() override;
peah-webrtc 2016/10/28 08:37:50 This was required by the compiler as this CL adds
// GainControl implementation.
int Enable(bool enable) override;
@@ -58,11 +61,15 @@ class GainControlForExperimentalAgc : public GainControl,
void SetMicVolume(int volume) override;
int GetMicVolume() override;
+ void Initialize();
+
private:
+ std::unique_ptr<ApmDataDumper> data_dumper_;
GainControl* real_gain_control_;
int volume_;
rtc::CriticalSection* crit_capture_;
- RTC_DISALLOW_COPY_AND_ASSIGN(GainControlForExperimentalAgc);
+ static int instance_counter_;
+ RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(GainControlForExperimentalAgc);
};
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698