Index: webrtc/modules/audio_processing/level_controller/peak_level_estimator.h |
diff --git a/webrtc/modules/audio_processing/level_controller/peak_level_estimator.h b/webrtc/modules/audio_processing/level_controller/peak_level_estimator.h |
index 270bbc3ad0a1e9e7960a36892033b2ea5947d778..45d486bc47e21be3463ed08ba710c0179ebbbcfd 100644 |
--- a/webrtc/modules/audio_processing/level_controller/peak_level_estimator.h |
+++ b/webrtc/modules/audio_processing/level_controller/peak_level_estimator.h |
@@ -12,24 +12,25 @@ |
#define WEBRTC_MODULES_AUDIO_PROCESSING_LEVEL_CONTROLLER_PEAK_LEVEL_ESTIMATOR_H_ |
#include "webrtc/base/constructormagic.h" |
+#include "webrtc/base/gtest_prod_util.h" |
the sun
2016/10/06 07:21:14
abomination! begone!
peah-webrtc
2016/10/07 21:03:58
:-)
Done.
|
+#include "webrtc/modules/audio_processing/level_controller/level_controller_constants.h" |
#include "webrtc/modules/audio_processing/level_controller/signal_classifier.h" |
namespace webrtc { |
class PeakLevelEstimator { |
public: |
- PeakLevelEstimator(); |
+ explicit PeakLevelEstimator(float initial_peak_level_dbfs); |
~PeakLevelEstimator(); |
- void Initialize(); |
+ void Initialize(float initial_peak_level_dbfs); |
float Analyze(SignalClassifier::SignalType signal_type, |
float frame_peak_level); |
- |
private: |
float peak_level_; |
int hold_counter_; |
bool initialization_phase_; |
- RTC_DISALLOW_COPY_AND_ASSIGN(PeakLevelEstimator); |
+ RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(PeakLevelEstimator); |
}; |
} // namespace webrtc |