AudioProcessing: Make minimum and maximum analog levels non-configurable
Remove analog_level_minimum and analog_level_maximum from
AudioProcessing GainController1 and replace their use with fixed
values 0 and 255, respectively.
Bug: webrtc:12774
Change-Id: Ia4bfe5ed43a65f1587ed67f36bfbb2966b6fdf26
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/235822
Commit-Queue: Hanna Silen <silen@webrtc.org>
Reviewed-by: Per Ã…hgren <peah@webrtc.org>
Reviewed-by: Alessio Bazzica <alessiob@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#35297}
diff --git a/modules/audio_processing/include/audio_processing.h b/modules/audio_processing/include/audio_processing.h
index ac9cea4..b3ef3af 100644
--- a/modules/audio_processing/include/audio_processing.h
+++ b/modules/audio_processing/include/audio_processing.h
@@ -291,10 +291,6 @@
// target level. Otherwise, the signal will be compressed but not limited
// above the target level.
bool enable_limiter = true;
- // Sets the minimum and maximum analog levels of the audio capture device.
- // Must be set if an analog mode is used. Limited to [0, 65535].
- int analog_level_minimum = 0;
- int analog_level_maximum = 255;
// Enables the analog gain controller functionality.
struct AnalogGainController {
@@ -621,7 +617,7 @@
// This must be called prior to ProcessStream() if and only if adaptive analog
// gain control is enabled, to pass the current analog level from the audio
- // HAL. Must be within the range provided in Config::GainController1.
+ // HAL. Must be within the range [0, 255].
virtual void set_stream_analog_level(int level) = 0;
// When an analog mode is set, this should be called after ProcessStream()