Set default value for the fixed delay to 0
This CL reverts part of commit aa5a43fce8 because we found out
that:
- The non-tuned APM use case doesn't pick default values from
aec_config.h but from source code.
- The tuned APM use cases are all explicitly setting the
'fixed_capture_delay_samples' value in their own aec.ini
Therefore in this change we set fixed_capture_delay_samples back
to its default value in echo_canceller3_config.h
Moving forward we want 'fixed_capture_delay_samples' to be zero
whenever system software loopback is used. For hardwre loopback
case, aec.ini should provide a tuned compensate value.
BUG=b:177830918
TEST=None
Change-Id: I0fab780ddd78a8bdb0da60df33d16e359ee0cd14
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/webrtc-apm/+/2898027
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
Reviewed-by: Per Åhgren <peah@chromium.org>
Tested-by: Hsinyu Chao <hychao@chromium.org>
Tested-by: Per Åhgren <peah@chromium.org>
Auto-Submit: Per Åhgren <peah@chromium.org>
Commit-Queue: Hsinyu Chao <hychao@chromium.org>
diff --git a/cras-config/aec_config.h b/cras-config/aec_config.h
index 8210bce..84d4b49 100644
--- a/cras-config/aec_config.h
+++ b/cras-config/aec_config.h
@@ -31,7 +31,7 @@
#define AEC_DELAY_HYSTERESIS_LIMIT_BLOCKS_VALUE 1
#define AEC_DELAY_FIXED_CAPTURE_DELAY_SAMPLES \
"delay:fixed_capture_delay_samples"
-#define AEC_DELAY_FIXED_CAPTURE_DELAY_SAMPLES_VALUE 1000
+#define AEC_DELAY_FIXED_CAPTURE_DELAY_SAMPLES_VALUE 0
#define AEC_DELAY_DELAY_ESTIMATE_SMOOTHING "delay:delay_estimate_smoothing"
#define AEC_DELAY_DELAY_ESTIMATE_SMOOTHING_VALUE 0.7f