GainController2: Remove the unused method Initialize

Bug: webrtc:7494
Change-Id: I46a808116abefc6d7d2dd3b954fc1fba7d6f8a90
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/280040
Commit-Queue: Hanna Silen <silen@webrtc.org>
Reviewed-by: Alessio Bazzica <alessiob@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#38455}
This commit is contained in:
Hanna Silen 2022-10-21 12:47:19 +02:00 committed by WebRTC LUCI CQ
parent b8a4daa31c
commit 335a4e4e1f
2 changed files with 0 additions and 20 deletions

View File

@ -95,23 +95,6 @@ GainController2::GainController2(const Agc2Config& config,
GainController2::~GainController2() = default;
void GainController2::Initialize(int sample_rate_hz, int num_channels) {
RTC_DCHECK(sample_rate_hz == AudioProcessing::kSampleRate8kHz ||
sample_rate_hz == AudioProcessing::kSampleRate16kHz ||
sample_rate_hz == AudioProcessing::kSampleRate32kHz ||
sample_rate_hz == AudioProcessing::kSampleRate48kHz);
// TODO(bugs.webrtc.org/7494): Initialize `fixed_gain_applier_`.
limiter_.SetSampleRate(sample_rate_hz);
if (vad_) {
vad_->Initialize(sample_rate_hz);
}
if (adaptive_digital_controller_) {
adaptive_digital_controller_->Initialize(sample_rate_hz, num_channels);
}
data_dumper_.InitiateNewSetOfRecordings();
calls_since_last_limiter_log_ = 0;
}
void GainController2::SetFixedGainDb(float gain_db) {
const float gain_factor = DbToRatio(gain_db);
if (fixed_gain_applier_.GetGainFactor() != gain_factor) {

View File

@ -41,9 +41,6 @@ class GainController2 {
GainController2& operator=(const GainController2&) = delete;
~GainController2();
// Detects and handles changes of sample rate and/or number of channels.
void Initialize(int sample_rate_hz, int num_channels);
// Sets the fixed digital gain.
void SetFixedGainDb(float gain_db);