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

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

Issue 2292863002: Introduced new scheme for controlling the functionality inside the audio processing module (Closed)
Patch Set: Removed the validation method and added logging of the config settings and revertion to default val… Created 4 years, 3 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/level_controller/level_controller.h
diff --git a/webrtc/modules/audio_processing/level_controller/level_controller.h b/webrtc/modules/audio_processing/level_controller/level_controller.h
index 65fc36005b692de46e114ca78be81f0ca1ada534..01dbf3678cb9901e91388723b38a9d80c402fe63 100644
--- a/webrtc/modules/audio_processing/level_controller/level_controller.h
+++ b/webrtc/modules/audio_processing/level_controller/level_controller.h
@@ -38,6 +38,14 @@ class LevelController {
void Process(AudioBuffer* audio);
float GetLastGain() { return last_gain_; }
+ // Validates a config.
+ static bool Validate(const AudioProcessing::Config::LevelController& config);
+ // Dumps a config to a string.
+ static std::string ToString(
+ const AudioProcessing::Config::LevelController& config);
+ // Produces a default config which is valid.
+ static AudioProcessing::Config::LevelController DefaultConfig();
+
private:
class Metrics {
public:

Powered by Google App Engine
This is Rietveld 408576698