Skip to content

Commit

Permalink
GainController2::ToString updated
Browse files Browse the repository at this point in the history
New params have recently been added, but ToString() was not updated.

(cherry picked from commit ab4a492)

Bug: chromium:1135177
Change-Id: I2115ccb08d29e860a658284d096e48da17daaedd
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/186267
Commit-Queue: Alessio Bazzica <[email protected]>
Reviewed-by: Karl Wiberg <[email protected]>
Cr-Original-Commit-Position: refs/heads/master@{#32283}
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/187480
Reviewed-by: Per Åhgren <[email protected]>
Reviewed-by: Minyue Li <[email protected]>
Cr-Commit-Position: refs/branch-heads/4280@{#4}
Cr-Branched-From: 75b9ab6-refs/heads/master@{#32272}
  • Loading branch information
alebzk authored and Commit Bot committed Oct 9, 2020
1 parent 219dcf0 commit 4f3dcea
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions modules/audio_processing/gain_controller2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,25 @@ std::string GainController2::ToString(
"adaptive_digital: {"
"enabled: "
<< (config.adaptive_digital.enabled ? "true" : "false") << ", "
"level_estimator: " << adaptive_digital_level_estimator << ", "
"extra_saturation_margin_db:"
<< config.adaptive_digital.extra_saturation_margin_db << "}"
"}";
"level_estimator: {"
"type: " << adaptive_digital_level_estimator << ", "
"adjacent_speech_frames_threshold: "
<< config.adaptive_digital
.level_estimator_adjacent_speech_frames_threshold << ", "
"initial_saturation_margin_db: "
<< config.adaptive_digital.initial_saturation_margin_db << ", "
"extra_saturation_margin_db: "
<< config.adaptive_digital.extra_saturation_margin_db << "}, "
"gain_applier: {"
"adjacent_speech_frames_threshold: "
<< config.adaptive_digital
.gain_applier_adjacent_speech_frames_threshold << ", "
"max_gain_change_db_per_second: "
<< config.adaptive_digital.max_gain_change_db_per_second << ", "
"max_output_noise_level_dbfs: "
<< config.adaptive_digital.max_output_noise_level_dbfs << "}"
"}"
"}";
// clang-format on
return ss.Release();
}
Expand Down

0 comments on commit 4f3dcea

Please sign in to comment.