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}
This commit is contained in:

committed by
WebRTC LUCI CQ

parent
31b03e9d50
commit
cd59704f8d
@ -291,10 +291,6 @@ class RTC_EXPORT AudioProcessing : public rtc::RefCountInterface {
|
||||
// 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 @@ class RTC_EXPORT AudioProcessing : public rtc::RefCountInterface {
|
||||
|
||||
// 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()
|
||||
|
Reference in New Issue
Block a user