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}
diff --git a/api/audio/echo_canceller3_config_json.cc b/api/audio/echo_canceller3_config_json.cc
index bb44162..784f928 100644
--- a/api/audio/echo_canceller3_config_json.cc
+++ b/api/audio/echo_canceller3_config_json.cc
@@ -305,6 +305,9 @@
&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 @@
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\": "