webrtc/modules/audio_processing/test
Sam Zackrisson 3bd444ffdb Clarify and extend test support for certain sample rates in audio processing
Sample rates not divisible by 100, in particular 11025 Hz and 22050 Hz, have long been used with APM in Chrome, but the support has never been stated explicitly.

This CL makes minor modifications to the APM API to clarify how rates are handled when 10 ms is not an integer number of samples. Unit tests are also extended to cover this case better.

This does not update all references to 10 ms and implicit floor(sample_rate/100) computations, but it does at least take us closer to a correct API.

Note that not all code needs to support these sample rates. For example, audio processing submodules only need to operate on the native APM rates 16000, 32000, 48000.

Bug: chromium:1332484
Change-Id: I1dad15468f6ccb9c0d4d09c5819fe87f8388d5b8
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/268769
Reviewed-by: Henrik Andreassson <henrika@webrtc.org>
Commit-Queue: Sam Zackrisson <saza@webrtc.org>
Reviewed-by: Ivo Creusen <ivoc@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#37682}
2022-08-03 14:26:36 +00:00
..
android/apmtest
conversational_speech Delete variant of rtc::split that copies the output fields 2022-06-09 08:29:33 +00:00
py_quality_assessment Remove dependency on rtc_base_approved from most targets 2022-04-25 12:15:30 +00:00
aec_dump_based_simulator.cc APM audioproc_f: adding --override_key_pressed 2022-03-18 10:51:37 +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 Move rtc::make_ref_counted to api/ 2022-06-15 09:47:38 +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 audioproc_f: fix AGC1 digital adaptive flag bug 2022-03-02 15:50:57 +00:00
audio_processing_simulator.h APM audioproc_f: adding --override_key_pressed 2022-03-18 10:51:37 +00:00
audioproc_float_impl.cc APM audioproc_f: adding --override_key_pressed 2022-03-18 10:51:37 +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.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_canceller_test_tools_unittest.cc AEC3: Make RenderSignalAnalyzer multi-channel 2019-09-13 06:07:09 +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.cc Prepare to rename RTC_NOTREACHED to RTC_DCHECK_NOTREACHED 2021-11-15 21:44:59 +00:00
fake_recording_device.h Remove top-level const from parameters in function declarations. 2022-01-26 11:05:25 +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
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 Remove more traces of keyboard mic support from APM 2022-02-04 14:27:51 +00:00
simulator_buffers.h
test_utils.cc Clarify and extend test support for certain sample rates in audio processing 2022-08-03 14:26:36 +00:00
test_utils.h Clarify and extend test support for certain sample rates in audio processing 2022-08-03 14:26:36 +00:00
unittest.proto Base ApmTest.Process on AudioProcessingStats.output_rms_dbfs 2018-12-18 16:45:03 +00:00
wav_based_simulator.cc Adopt absl::string_view in rtc_base/ (straightforward cases) 2022-04-17 12:11:56 +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