Implement InputVolumeController
Implement InputVolumeController and RecommendedInputVolumeEstimator based on the copy of agc classes AgcManagerDirect and MonoAgc. Copies of the original files created in https://webrtc-review.googlesource.com/c/src/+/278624. Bug: webrtc:7494 Change-Id: I74acee57b0db5cc8a6b666be9ba619c6c98a1773 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/278625 Reviewed-by: Alessio Bazzica <alessiob@webrtc.org> Commit-Queue: Hanna Silen <silen@webrtc.org> Reviewed-by: Per Åhgren <peah@webrtc.org> Cr-Commit-Position: refs/heads/main@{#38533}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
adbcbf73fa
commit
9f06ef1cc3
@ -357,6 +357,15 @@ class RTC_EXPORT AudioProcessing : public rtc::RefCountInterface {
|
||||
float max_gain_change_db_per_second = 3.0f;
|
||||
float max_output_noise_level_dbfs = -50.0f;
|
||||
} adaptive_digital;
|
||||
|
||||
// Enables input volume control in AGC2.
|
||||
struct InputVolumeController {
|
||||
bool operator==(const InputVolumeController& rhs) const;
|
||||
bool operator!=(const InputVolumeController& rhs) const {
|
||||
return !(*this == rhs);
|
||||
}
|
||||
bool enabled = false;
|
||||
} input_volume_controller;
|
||||
} gain_controller2;
|
||||
|
||||
std::string ToString() const;
|
||||
|
||||
Reference in New Issue
Block a user