Index: webrtc/modules/audio_processing/include/audio_processing.h |
diff --git a/webrtc/modules/audio_processing/include/audio_processing.h b/webrtc/modules/audio_processing/include/audio_processing.h |
index 035fa32c7ad22121eb56d832ffc599a5602659d9..7a3439d98667abd412f606d72ce8404c8a5c1f3a 100644 |
--- a/webrtc/modules/audio_processing/include/audio_processing.h |
+++ b/webrtc/modules/audio_processing/include/audio_processing.h |
@@ -20,6 +20,7 @@ |
#include <vector> |
#include "webrtc/base/arraysize.h" |
+#include "webrtc/base/optional.h" |
#include "webrtc/base/platform_file.h" |
#include "webrtc/modules/audio_processing/beamformer/array_util.h" |
#include "webrtc/modules/audio_processing/include/config.h" |
@@ -251,7 +252,14 @@ class AudioProcessing { |
// The config is applied by passing the struct to the ApplyConfig method. |
struct Config { |
struct LevelController { |
+ LevelController(); |
+ ~LevelController(); |
the sun
2016/09/14 10:00:59
is the dtor really necessary?
peah-webrtc
2016/09/16 07:11:07
clang complains if I remove it. So I guess it is n
|
bool enabled = false; |
+ |
+ // Sets the initial peak level to use inside the level controller in order |
+ // to compute the signal gain. The unit for the peak level is dBFS and |
+ // the allowed range is [-100, 0]. |
+ rtc::Optional<float> initial_level; |
the sun
2016/09/14 10:00:59
Why don't we always have an initial level?
peah-webrtc
2016/09/16 07:11:06
We do. One way would be to hardcode the default in
the sun
2016/09/16 08:00:40
If I picture myself as someone who'd consider usin
peah-webrtc
2016/09/16 11:36:05
That is true. I agree.
|
} level_controller; |
}; |