AEC3: Included missing parsing of config parameter
Bug: webrtc:9912,chromium:898462 Change-Id: I8efb60367964d3880ba15ffd18349abd288d7307 Reviewed-on: https://webrtc-review.googlesource.com/c/107654 Commit-Queue: Per Åhgren <peah@webrtc.org> Reviewed-by: Gustaf Ullberg <gustaf@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25332}
This commit is contained in:
parent
8e6749e0dd
commit
fb5c1eca30
@ -305,6 +305,9 @@ EchoCanceller3Config Aec3ConfigFromJsonString(absl::string_view json_string) {
|
||||
&cfg.suppressor.dominant_nearend_detection.hold_duration);
|
||||
ReadParam(subsection, "trigger_threshold",
|
||||
&cfg.suppressor.dominant_nearend_detection.trigger_threshold);
|
||||
ReadParam(
|
||||
subsection, "use_during_initial_phase",
|
||||
&cfg.suppressor.dominant_nearend_detection.use_during_initial_phase);
|
||||
}
|
||||
|
||||
if (rtc::GetValueFromJsonObject(section, "high_bands_suppression",
|
||||
@ -539,7 +542,9 @@ std::string Aec3ConfigToJsonString(const EchoCanceller3Config& config) {
|
||||
ost << "\"hold_duration\": "
|
||||
<< config.suppressor.dominant_nearend_detection.hold_duration << ",";
|
||||
ost << "\"trigger_threshold\": "
|
||||
<< config.suppressor.dominant_nearend_detection.trigger_threshold;
|
||||
<< config.suppressor.dominant_nearend_detection.trigger_threshold << ",";
|
||||
ost << "\"use_during_initial_phase\": "
|
||||
<< config.suppressor.dominant_nearend_detection.use_during_initial_phase;
|
||||
ost << "},";
|
||||
ost << "\"high_bands_suppression\": {";
|
||||
ost << "\"enr_threshold\": "
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user