webrtc/modules/audio_processing/test
Sam Zackrisson 03cb7e5a61 APM: Make echo detector an optionally compilable and injectable component
Important: This change does not in any way affect echo cancellation or standardized stats. The user audio experience is unchanged. Only non-standard stats are affected. Echo return loss metrics are unchanged. Residual echo likelihood {recent max} will no longer be computed by default.

Important: The echo detector is no longer enabled by default.

API change, PSA: https://groups.google.com/g/discuss-webrtc/c/mJV5cDysBDI/m/7PTPBjVHCgAJ

This CL removes the default usage of the residual echo detector in APM.
It can now only be used via injection and the helper function webrtc::CreateEchoDetector. See how the function audio_processing_unittest.cc:CreateApm() changed, for an example.

The echo detector implementation is marked poisonous, to avoid accidental dependencies.

Some cleanup is done:
- EchoDetector::PackRenderAudioBuffer is declared in one target but is defined in another target. It is not necessary to keep in the API. It is made an implementation detail, and the echo detector input is documented in the API.
- The internal state of APM is large and difficult to track. Submodule pointers that are set permanently on construction are now appropriately marked const.

Tested:
- existing + new unit tests
- audioproc_f is bitexact on a large number of aecdumps

Bug: webrtc:11539
Change-Id: I00cc2ee112fedb06451a533409311605220064d0
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/239652
Reviewed-by: Ivo Creusen <ivoc@webrtc.org>
Reviewed-by: Per Kjellander <perkj@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Sam Zackrisson <saza@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#35550}
2021-12-16 17:39:11 +00:00
..
android/apmtest
conversational_speech Use backticks not vertical bars to denote variables in comments for /modules/audio_processing 2021-08-09 21:49:02 +00:00
py_quality_assessment Use backticks not vertical bars to denote variables in comments 2021-08-10 10:40:03 +00:00
aec_dump_based_simulator.cc APM: Make echo detector an optionally compilable and injectable component 2021-12-16 17:39:11 +00:00
aec_dump_based_simulator.h Add more refined control over dumping of data and the aecdump content 2021-02-06 00:36:10 +00:00
api_call_statistics.cc Use std::make_unique instead of absl::make_unique. 2019-09-17 15:47:29 +00:00
api_call_statistics.h Added more refined benchmarking code for audioproc_f 2019-04-04 08:37:16 +00:00
apmtest.m
audio_buffer_tools.cc Add refined handling of the internal scaling of the audio in APM 2021-03-15 19:12:02 +00:00
audio_buffer_tools.h Add refined handling of the internal scaling of the audio in APM 2021-03-15 19:12:02 +00:00
audio_processing_builder_for_testing.cc APM fuzzer: add SetConfig() to test builder 2021-10-18 14:53:37 +00:00
audio_processing_builder_for_testing.h APM fuzzer: add SetConfig() to test builder 2021-10-18 14:53:37 +00:00
audio_processing_simulator.cc APM: Make echo detector an optionally compilable and injectable component 2021-12-16 17:39:11 +00:00
audio_processing_simulator.h APM: remove LevelEstimator 2021-10-20 10:52:17 +00:00
audioproc_float_impl.cc APM: remove LevelEstimator 2021-10-20 10:52:17 +00:00
audioproc_float_impl.h Use backticks not vertical bars to denote variables in comments for /modules/audio_processing 2021-08-09 21:49:02 +00:00
bitexactness_tools.cc Prepare to rename RTC_NOTREACHED to RTC_DCHECK_NOTREACHED 2021-11-15 21:44:59 +00:00
bitexactness_tools.h Add DCHECK and documentation to disallow trying to read more than two audio channels in helper function. 2018-01-12 15:27:50 +00:00
debug_dump_replayer.cc ExperimentalNs removed + APM not depending anymore on webrtc::Config 2021-09-17 10:53:43 +00:00
debug_dump_replayer.h Use make_ref_counted in AudioProcessingBuilder 2021-08-11 15:40:28 +00:00
debug_dump_test.cc ExperimentalNs removed + APM not depending anymore on webrtc::Config 2021-09-17 10:53:43 +00:00
echo_canceller_test_tools_unittest.cc AEC3: Make RenderSignalAnalyzer multi-channel 2019-09-13 06:07:09 +00:00
echo_canceller_test_tools.cc AEC3: Make RenderSignalAnalyzer multi-channel 2019-09-13 06:07:09 +00:00
echo_canceller_test_tools.h AEC3: Add support in the echo subtractor for handling multiple channels 2019-10-05 07:45:47 +00:00
echo_control_mock.h Enabling a safe fall-back functionality for overruns in the runtime settings 2021-03-03 12:06:54 +00:00
fake_recording_device_unittest.cc Use backticks not vertical bars to denote variables in comments for /modules/audio_processing 2021-08-09 21:49:02 +00:00
fake_recording_device.cc Prepare to rename RTC_NOTREACHED to RTC_DCHECK_NOTREACHED 2021-11-15 21:44:59 +00:00
fake_recording_device.h Use backticks not vertical bars to denote variables in comments for /modules/audio_processing 2021-08-09 21:49:02 +00:00
performance_timer.cc Optional: Use nullopt and implicit construction in /modules/audio_processing 2017-11-20 10:19:30 +00:00
performance_timer.h Use backticks not vertical bars to denote variables in comments for /modules/audio_processing 2021-08-09 21:49:02 +00:00
protobuf_utils.cc Use std::make_unique instead of absl::make_unique. 2019-09-17 15:47:29 +00:00
protobuf_utils.h audioproc_f: input AEC dump as string, output audio to vector 2019-08-12 09:17:36 +00:00
runtime_setting_util.cc Reland "Add ability to state whether the APM output will be used" 2020-08-18 12:29:32 +00:00
runtime_setting_util.h Store RuntimeSetting in Aec Dumps. 2018-09-10 11:40:28 +00:00
simulator_buffers.cc Reland "Simplification and refactoring of the AudioBuffer code" 2019-08-22 10:34:05 +00:00
simulator_buffers.h
test_utils.cc Introduce RTC_CHECK_NOTREACHED(), an always-checking RTC_NOTREACHED() 2020-11-09 10:47:55 +00:00
test_utils.h Use backticks not vertical bars to denote variables in comments for /modules/audio_processing 2021-08-09 21:49:02 +00:00
unittest.proto Base ApmTest.Process on AudioProcessingStats.output_rms_dbfs 2018-12-18 16:45:03 +00:00
wav_based_simulator.cc Roll chromium_revision 47dc8e2f50..680b7dae9d (912091:912910) 2021-08-18 10:22:27 +00:00
wav_based_simulator.h Add more refined control over dumping of data and the aecdump content 2021-02-06 00:36:10 +00:00