2014-06-23 19:21:07 +00:00
|
|
|
# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
#
|
|
|
|
|
# Use of this source code is governed by a BSD-style license
|
|
|
|
|
# that can be found in the LICENSE file in the root of the source
|
|
|
|
|
# tree. An additional intellectual property rights grant can be found
|
|
|
|
|
# in the file PATENTS. All contributing project authors may
|
|
|
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
|
2014-08-31 20:32:53 +00:00
|
|
|
import("//build/config/arm.gni")
|
|
|
|
|
import("//third_party/protobuf/proto_library.gni")
|
2017-01-24 06:58:22 -08:00
|
|
|
import("../../webrtc.gni")
|
2014-06-23 19:21:07 +00:00
|
|
|
|
2014-08-31 20:32:53 +00:00
|
|
|
declare_args() {
|
|
|
|
|
# Disables the usual mode where we trust the reported system delay
|
|
|
|
|
# values the AEC receives. The corresponding define is set appropriately
|
|
|
|
|
# in the code, but it can be force-enabled here for testing.
|
|
|
|
|
aec_untrusted_delay_for_testing = false
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-23 00:38:52 -07:00
|
|
|
rtc_static_library("audio_processing") {
|
2014-08-31 20:32:53 +00:00
|
|
|
sources = [
|
2016-02-23 14:34:59 -08:00
|
|
|
"aec/aec_core.cc",
|
2014-12-15 09:41:24 +00:00
|
|
|
"aec/aec_core.h",
|
2016-05-09 03:57:33 -07:00
|
|
|
"aec/aec_core_optimized_methods.h",
|
2016-03-04 00:12:40 -08:00
|
|
|
"aec/aec_resampler.cc",
|
2014-12-15 09:41:24 +00:00
|
|
|
"aec/aec_resampler.h",
|
2016-02-23 14:34:59 -08:00
|
|
|
"aec/echo_cancellation.cc",
|
2015-11-11 20:16:11 +01:00
|
|
|
"aec/echo_cancellation.h",
|
2017-02-23 05:16:26 -08:00
|
|
|
"aec3/adaptive_fir_filter.cc",
|
|
|
|
|
"aec3/adaptive_fir_filter.h",
|
|
|
|
|
"aec3/aec3_common.cc",
|
|
|
|
|
"aec3/aec3_common.h",
|
|
|
|
|
"aec3/aec3_fft.cc",
|
|
|
|
|
"aec3/aec3_fft.h",
|
|
|
|
|
"aec3/aec_state.cc",
|
|
|
|
|
"aec3/aec_state.h",
|
2017-01-03 04:20:34 -08:00
|
|
|
"aec3/block_framer.cc",
|
|
|
|
|
"aec3/block_framer.h",
|
|
|
|
|
"aec3/block_processor.cc",
|
|
|
|
|
"aec3/block_processor.h",
|
2017-02-28 22:08:53 -08:00
|
|
|
"aec3/block_processor_metrics.cc",
|
|
|
|
|
"aec3/block_processor_metrics.h",
|
2017-01-03 04:20:34 -08:00
|
|
|
"aec3/cascaded_biquad_filter.cc",
|
|
|
|
|
"aec3/cascaded_biquad_filter.h",
|
2017-02-23 05:16:26 -08:00
|
|
|
"aec3/comfort_noise_generator.cc",
|
|
|
|
|
"aec3/comfort_noise_generator.h",
|
2017-02-08 05:08:56 -08:00
|
|
|
"aec3/decimator_by_4.cc",
|
|
|
|
|
"aec3/decimator_by_4.h",
|
2017-04-05 14:18:07 -07:00
|
|
|
"aec3/downsampled_render_buffer.cc",
|
|
|
|
|
"aec3/downsampled_render_buffer.h",
|
2016-12-14 01:16:23 -08:00
|
|
|
"aec3/echo_canceller3.cc",
|
|
|
|
|
"aec3/echo_canceller3.h",
|
2017-01-27 03:28:19 -08:00
|
|
|
"aec3/echo_path_delay_estimator.cc",
|
|
|
|
|
"aec3/echo_path_delay_estimator.h",
|
2017-02-23 05:16:26 -08:00
|
|
|
"aec3/echo_path_variability.cc",
|
2017-01-27 03:28:19 -08:00
|
|
|
"aec3/echo_path_variability.h",
|
|
|
|
|
"aec3/echo_remover.cc",
|
|
|
|
|
"aec3/echo_remover.h",
|
2017-02-28 22:08:53 -08:00
|
|
|
"aec3/echo_remover_metrics.cc",
|
|
|
|
|
"aec3/echo_remover_metrics.h",
|
2017-02-23 05:16:26 -08:00
|
|
|
"aec3/erl_estimator.cc",
|
|
|
|
|
"aec3/erl_estimator.h",
|
|
|
|
|
"aec3/erle_estimator.cc",
|
|
|
|
|
"aec3/erle_estimator.h",
|
|
|
|
|
"aec3/fft_data.h",
|
2017-01-03 04:20:34 -08:00
|
|
|
"aec3/frame_blocker.cc",
|
|
|
|
|
"aec3/frame_blocker.h",
|
2017-02-23 05:16:26 -08:00
|
|
|
"aec3/main_filter_update_gain.cc",
|
|
|
|
|
"aec3/main_filter_update_gain.h",
|
2017-02-08 05:08:56 -08:00
|
|
|
"aec3/matched_filter.cc",
|
|
|
|
|
"aec3/matched_filter.h",
|
|
|
|
|
"aec3/matched_filter_lag_aggregator.cc",
|
|
|
|
|
"aec3/matched_filter_lag_aggregator.h",
|
2017-02-23 05:16:26 -08:00
|
|
|
"aec3/output_selector.cc",
|
|
|
|
|
"aec3/output_selector.h",
|
2017-04-05 14:18:07 -07:00
|
|
|
"aec3/render_buffer.cc",
|
|
|
|
|
"aec3/render_buffer.h",
|
2017-01-27 03:28:19 -08:00
|
|
|
"aec3/render_delay_buffer.cc",
|
|
|
|
|
"aec3/render_delay_buffer.h",
|
|
|
|
|
"aec3/render_delay_controller.cc",
|
|
|
|
|
"aec3/render_delay_controller.h",
|
2017-02-28 22:08:53 -08:00
|
|
|
"aec3/render_delay_controller_metrics.cc",
|
|
|
|
|
"aec3/render_delay_controller_metrics.h",
|
2017-02-23 05:16:26 -08:00
|
|
|
"aec3/render_signal_analyzer.cc",
|
|
|
|
|
"aec3/render_signal_analyzer.h",
|
|
|
|
|
"aec3/residual_echo_estimator.cc",
|
|
|
|
|
"aec3/residual_echo_estimator.h",
|
|
|
|
|
"aec3/shadow_filter_update_gain.cc",
|
|
|
|
|
"aec3/shadow_filter_update_gain.h",
|
|
|
|
|
"aec3/subtractor.cc",
|
|
|
|
|
"aec3/subtractor.h",
|
|
|
|
|
"aec3/subtractor_output.h",
|
|
|
|
|
"aec3/suppression_filter.cc",
|
|
|
|
|
"aec3/suppression_filter.h",
|
|
|
|
|
"aec3/suppression_gain.cc",
|
|
|
|
|
"aec3/suppression_gain.h",
|
2017-04-12 01:20:45 -07:00
|
|
|
"aec3/vector_math.h",
|
2016-04-10 22:38:14 -07:00
|
|
|
"aecm/aecm_core.cc",
|
2014-08-31 20:32:53 +00:00
|
|
|
"aecm/aecm_core.h",
|
2016-04-10 22:38:14 -07:00
|
|
|
"aecm/echo_control_mobile.cc",
|
2015-11-11 20:16:11 +01:00
|
|
|
"aecm/echo_control_mobile.h",
|
2014-12-15 09:41:24 +00:00
|
|
|
"agc/agc.cc",
|
|
|
|
|
"agc/agc.h",
|
|
|
|
|
"agc/agc_manager_direct.cc",
|
|
|
|
|
"agc/agc_manager_direct.h",
|
|
|
|
|
"agc/gain_map_internal.h",
|
2016-06-08 06:42:02 -07:00
|
|
|
"agc/loudness_histogram.cc",
|
|
|
|
|
"agc/loudness_histogram.h",
|
2014-12-15 09:41:24 +00:00
|
|
|
"agc/utility.cc",
|
|
|
|
|
"agc/utility.h",
|
2017-05-22 06:57:06 -07:00
|
|
|
"agc2/digital_gain_applier.cc",
|
|
|
|
|
"agc2/digital_gain_applier.h",
|
|
|
|
|
"agc2/gain_controller2.cc",
|
|
|
|
|
"agc2/gain_controller2.h",
|
2014-08-31 20:32:53 +00:00
|
|
|
"audio_buffer.cc",
|
|
|
|
|
"audio_buffer.h",
|
|
|
|
|
"audio_processing_impl.cc",
|
|
|
|
|
"audio_processing_impl.h",
|
2015-10-19 18:02:39 -07:00
|
|
|
"beamformer/array_util.cc",
|
|
|
|
|
"beamformer/array_util.h",
|
2014-12-18 22:22:04 +00:00
|
|
|
"beamformer/complex_matrix.h",
|
|
|
|
|
"beamformer/covariance_matrix_generator.cc",
|
|
|
|
|
"beamformer/covariance_matrix_generator.h",
|
|
|
|
|
"beamformer/matrix.h",
|
2015-03-20 00:28:22 +00:00
|
|
|
"beamformer/nonlinear_beamformer.cc",
|
|
|
|
|
"beamformer/nonlinear_beamformer.h",
|
2014-08-31 20:32:53 +00:00
|
|
|
"common.h",
|
|
|
|
|
"echo_cancellation_impl.cc",
|
|
|
|
|
"echo_cancellation_impl.h",
|
|
|
|
|
"echo_control_mobile_impl.cc",
|
|
|
|
|
"echo_control_mobile_impl.h",
|
2016-10-28 07:04:03 -07:00
|
|
|
"echo_detector/circular_buffer.cc",
|
|
|
|
|
"echo_detector/circular_buffer.h",
|
|
|
|
|
"echo_detector/mean_variance_estimator.cc",
|
|
|
|
|
"echo_detector/mean_variance_estimator.h",
|
2017-01-15 08:29:46 -08:00
|
|
|
"echo_detector/moving_max.cc",
|
|
|
|
|
"echo_detector/moving_max.h",
|
2016-10-28 07:04:03 -07:00
|
|
|
"echo_detector/normalized_covariance_estimator.cc",
|
|
|
|
|
"echo_detector/normalized_covariance_estimator.h",
|
2016-02-13 16:40:47 -08:00
|
|
|
"gain_control_for_experimental_agc.cc",
|
|
|
|
|
"gain_control_for_experimental_agc.h",
|
2014-08-31 20:32:53 +00:00
|
|
|
"gain_control_impl.cc",
|
|
|
|
|
"gain_control_impl.h",
|
2016-10-07 14:54:10 -07:00
|
|
|
"include/audio_processing.cc",
|
2014-08-31 20:32:53 +00:00
|
|
|
"include/audio_processing.h",
|
2016-09-07 07:34:41 -07:00
|
|
|
"include/config.cc",
|
|
|
|
|
"include/config.h",
|
2016-06-29 15:26:12 -07:00
|
|
|
"level_controller/biquad_filter.cc",
|
|
|
|
|
"level_controller/biquad_filter.h",
|
|
|
|
|
"level_controller/down_sampler.cc",
|
|
|
|
|
"level_controller/down_sampler.h",
|
|
|
|
|
"level_controller/gain_applier.cc",
|
|
|
|
|
"level_controller/gain_applier.h",
|
|
|
|
|
"level_controller/gain_selector.cc",
|
|
|
|
|
"level_controller/gain_selector.h",
|
|
|
|
|
"level_controller/level_controller.cc",
|
|
|
|
|
"level_controller/level_controller.h",
|
2016-10-07 14:54:10 -07:00
|
|
|
"level_controller/level_controller_constants.h",
|
2016-06-29 15:26:12 -07:00
|
|
|
"level_controller/noise_level_estimator.cc",
|
|
|
|
|
"level_controller/noise_level_estimator.h",
|
|
|
|
|
"level_controller/noise_spectrum_estimator.cc",
|
|
|
|
|
"level_controller/noise_spectrum_estimator.h",
|
|
|
|
|
"level_controller/peak_level_estimator.cc",
|
|
|
|
|
"level_controller/peak_level_estimator.h",
|
|
|
|
|
"level_controller/saturating_gain_estimator.cc",
|
|
|
|
|
"level_controller/saturating_gain_estimator.h",
|
|
|
|
|
"level_controller/signal_classifier.cc",
|
|
|
|
|
"level_controller/signal_classifier.h",
|
2014-08-31 20:32:53 +00:00
|
|
|
"level_estimator_impl.cc",
|
|
|
|
|
"level_estimator_impl.h",
|
2016-05-03 07:01:18 -07:00
|
|
|
"logging/apm_data_dumper.cc",
|
|
|
|
|
"logging/apm_data_dumper.h",
|
2016-11-22 07:24:52 -08:00
|
|
|
"low_cut_filter.cc",
|
|
|
|
|
"low_cut_filter.h",
|
2014-08-31 20:32:53 +00:00
|
|
|
"noise_suppression_impl.cc",
|
|
|
|
|
"noise_suppression_impl.h",
|
2016-03-10 23:05:28 -08:00
|
|
|
"render_queue_item_verifier.h",
|
2016-10-28 05:39:16 -07:00
|
|
|
"residual_echo_detector.cc",
|
|
|
|
|
"residual_echo_detector.h",
|
2014-08-31 20:32:53 +00:00
|
|
|
"rms_level.cc",
|
|
|
|
|
"rms_level.h",
|
2014-11-14 22:18:10 +00:00
|
|
|
"splitting_filter.cc",
|
|
|
|
|
"splitting_filter.h",
|
2015-04-27 11:34:45 -07:00
|
|
|
"three_band_filter_bank.cc",
|
|
|
|
|
"three_band_filter_bank.h",
|
2014-12-15 09:41:24 +00:00
|
|
|
"transient/common.h",
|
|
|
|
|
"transient/daubechies_8_wavelet_coeffs.h",
|
|
|
|
|
"transient/dyadic_decimator.h",
|
|
|
|
|
"transient/moving_moments.cc",
|
|
|
|
|
"transient/moving_moments.h",
|
|
|
|
|
"transient/transient_detector.cc",
|
|
|
|
|
"transient/transient_detector.h",
|
|
|
|
|
"transient/transient_suppressor.cc",
|
|
|
|
|
"transient/transient_suppressor.h",
|
|
|
|
|
"transient/wpd_node.cc",
|
|
|
|
|
"transient/wpd_node.h",
|
|
|
|
|
"transient/wpd_tree.cc",
|
|
|
|
|
"transient/wpd_tree.h",
|
2014-08-31 20:32:53 +00:00
|
|
|
"typing_detection.cc",
|
|
|
|
|
"typing_detection.h",
|
2016-03-24 14:36:25 -07:00
|
|
|
"utility/block_mean_calculator.cc",
|
|
|
|
|
"utility/block_mean_calculator.h",
|
2016-04-12 14:47:40 -07:00
|
|
|
"utility/delay_estimator.cc",
|
2014-08-31 20:32:53 +00:00
|
|
|
"utility/delay_estimator.h",
|
|
|
|
|
"utility/delay_estimator_internal.h",
|
2016-04-12 14:47:40 -07:00
|
|
|
"utility/delay_estimator_wrapper.cc",
|
2014-08-31 20:32:53 +00:00
|
|
|
"utility/delay_estimator_wrapper.h",
|
2016-10-06 06:46:20 -07:00
|
|
|
"utility/ooura_fft.cc",
|
|
|
|
|
"utility/ooura_fft.h",
|
|
|
|
|
"utility/ooura_fft_tables_common.h",
|
2015-06-25 12:28:48 -07:00
|
|
|
"vad/common.h",
|
|
|
|
|
"vad/gmm.cc",
|
|
|
|
|
"vad/gmm.h",
|
|
|
|
|
"vad/noise_gmm_tables.h",
|
|
|
|
|
"vad/pitch_based_vad.cc",
|
|
|
|
|
"vad/pitch_based_vad.h",
|
|
|
|
|
"vad/pitch_internal.cc",
|
|
|
|
|
"vad/pitch_internal.h",
|
|
|
|
|
"vad/pole_zero_filter.cc",
|
|
|
|
|
"vad/pole_zero_filter.h",
|
|
|
|
|
"vad/standalone_vad.cc",
|
|
|
|
|
"vad/standalone_vad.h",
|
|
|
|
|
"vad/vad_audio_proc.cc",
|
|
|
|
|
"vad/vad_audio_proc.h",
|
|
|
|
|
"vad/vad_audio_proc_internal.h",
|
|
|
|
|
"vad/vad_circular_buffer.cc",
|
|
|
|
|
"vad/vad_circular_buffer.h",
|
|
|
|
|
"vad/voice_activity_detector.cc",
|
|
|
|
|
"vad/voice_activity_detector.h",
|
|
|
|
|
"vad/voice_gmm_tables.h",
|
2014-08-31 20:32:53 +00:00
|
|
|
"voice_detection_impl.cc",
|
|
|
|
|
"voice_detection_impl.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
defines = []
|
2015-05-25 12:55:39 +02:00
|
|
|
deps = [
|
AudioProcessingModule has a feature to make a recording of its
configuration, inputs and outputs over a period of time. It is
activated by AudioProcessing::StartRecording. The data is stored in
binary protobuf format in a specified file. The file IO is, as of
this CL, done from the real-time audio thread.
This CL contains an interface for AecDump, a new APM submodule that
will handle the recordings. Calls to the new interface from the
AudioProcessingModule are added. These calls have no effect, and for a
short while, audio_processing_impl.cc will contain two copies of
recording calls.
The original calls are guarded by the WEBRTC_AUDIOPROC_DEBUG_DUMP
preprocessor define. They still have an effect, while the new ones do
not. In the following CLs, the old recording calls will be removed,
and an implementation of AecDump added.
The reasons for the refactoring is to move file IO operations from the
real-time audio thread, to add a top-level low-priority task queue for
logging tasks like this, to simplify and modularize audio_processing_impl.cc
and remove some of the preprocessor directives. These goals will be
archived by the upcoming CLs. The implementation is in
https://codereview.webrtc.org/2865113002.
BUG=webrtc:7404
Review-Url: https://codereview.webrtc.org/2778783002
Cr-Commit-Position: refs/heads/master@{#18233}
2017-05-23 07:20:05 -07:00
|
|
|
":aec_dump_interface",
|
2017-04-26 03:38:35 -07:00
|
|
|
"..:module_api",
|
2015-05-25 12:55:39 +02:00
|
|
|
"../..:webrtc_common",
|
2017-09-04 05:43:17 -07:00
|
|
|
"../../api:array_view",
|
2017-09-05 08:43:13 -07:00
|
|
|
"../../api:optional",
|
2016-12-05 01:46:09 -08:00
|
|
|
"../../audio/utility:audio_frame_operations",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:gtest_prod",
|
|
|
|
|
"../../rtc_base:protobuf_utils",
|
2015-09-30 21:54:21 -07:00
|
|
|
"../audio_coding:isac",
|
2015-05-25 12:55:39 +02:00
|
|
|
]
|
2016-12-05 22:47:46 -08:00
|
|
|
public_deps = [
|
|
|
|
|
":audio_processing_c",
|
|
|
|
|
]
|
2014-08-31 20:32:53 +00:00
|
|
|
|
2016-09-01 08:58:21 -07:00
|
|
|
if (apm_debug_dump) {
|
|
|
|
|
defines += [ "WEBRTC_APM_DEBUG_DUMP=1" ]
|
2016-05-03 07:01:18 -07:00
|
|
|
} else {
|
2016-09-01 08:58:21 -07:00
|
|
|
defines += [ "WEBRTC_APM_DEBUG_DUMP=0" ]
|
2014-08-31 20:32:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (aec_untrusted_delay_for_testing) {
|
|
|
|
|
defines += [ "WEBRTC_UNTRUSTED_DELAY" ]
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-07 17:36:10 +00:00
|
|
|
if (rtc_enable_protobuf) {
|
2014-08-31 20:32:53 +00:00
|
|
|
defines += [ "WEBRTC_AUDIOPROC_DEBUG_DUMP" ]
|
|
|
|
|
deps += [ ":audioproc_debug_proto" ]
|
|
|
|
|
}
|
|
|
|
|
|
2016-08-26 07:16:04 -07:00
|
|
|
if (rtc_enable_intelligibility_enhancer) {
|
|
|
|
|
defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=1" ]
|
|
|
|
|
sources += [
|
|
|
|
|
"intelligibility/intelligibility_enhancer.cc",
|
|
|
|
|
"intelligibility/intelligibility_enhancer.h",
|
|
|
|
|
"intelligibility/intelligibility_utils.cc",
|
|
|
|
|
"intelligibility/intelligibility_utils.h",
|
|
|
|
|
]
|
|
|
|
|
} else {
|
|
|
|
|
defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=0" ]
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-07 17:36:10 +00:00
|
|
|
if (rtc_prefer_fixed_point) {
|
2014-08-31 20:32:53 +00:00
|
|
|
defines += [ "WEBRTC_NS_FIXED" ]
|
|
|
|
|
} else {
|
|
|
|
|
defines += [ "WEBRTC_NS_FLOAT" ]
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-23 19:08:31 +00:00
|
|
|
if (current_cpu == "x86" || current_cpu == "x64") {
|
2014-08-31 20:32:53 +00:00
|
|
|
deps += [ ":audio_processing_sse2" ]
|
|
|
|
|
}
|
|
|
|
|
|
2015-06-24 18:25:54 -07:00
|
|
|
if (rtc_build_with_neon) {
|
2014-08-31 20:32:53 +00:00
|
|
|
deps += [ ":audio_processing_neon" ]
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-23 19:08:31 +00:00
|
|
|
if (current_cpu == "mipsel") {
|
2016-04-10 22:38:14 -07:00
|
|
|
sources += [ "aecm/aecm_core_mips.cc" ]
|
2015-03-04 09:50:31 +00:00
|
|
|
if (mips_float_abi == "hard") {
|
2014-08-31 20:32:53 +00:00
|
|
|
sources += [
|
2016-02-23 14:34:59 -08:00
|
|
|
"aec/aec_core_mips.cc",
|
2016-10-06 06:46:20 -07:00
|
|
|
"utility/ooura_fft_mips.cc",
|
2014-08-31 20:32:53 +00:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
} else {
|
2016-04-10 22:38:14 -07:00
|
|
|
sources += [ "aecm/aecm_core_c.cc" ]
|
2014-08-31 20:32:53 +00:00
|
|
|
}
|
|
|
|
|
|
2016-06-02 02:09:52 -07:00
|
|
|
# TODO(jschuh): Bug 1348: fix this warning.
|
|
|
|
|
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
|
2014-08-31 20:32:53 +00:00
|
|
|
|
|
|
|
|
deps += [
|
|
|
|
|
"../../common_audio",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2014-08-31 20:32:53 +00:00
|
|
|
"../../system_wrappers",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
AudioProcessingModule has a feature to make a recording of its
configuration, inputs and outputs over a period of time. It is
activated by AudioProcessing::StartRecording. The data is stored in
binary protobuf format in a specified file. The file IO is, as of
this CL, done from the real-time audio thread.
This CL contains an interface for AecDump, a new APM submodule that
will handle the recordings. Calls to the new interface from the
AudioProcessingModule are added. These calls have no effect, and for a
short while, audio_processing_impl.cc will contain two copies of
recording calls.
The original calls are guarded by the WEBRTC_AUDIOPROC_DEBUG_DUMP
preprocessor define. They still have an effect, while the new ones do
not. In the following CLs, the old recording calls will be removed,
and an implementation of AecDump added.
The reasons for the refactoring is to move file IO operations from the
real-time audio thread, to add a top-level low-priority task queue for
logging tasks like this, to simplify and modularize audio_processing_impl.cc
and remove some of the preprocessor directives. These goals will be
archived by the upcoming CLs. The implementation is in
https://codereview.webrtc.org/2865113002.
BUG=webrtc:7404
Review-Url: https://codereview.webrtc.org/2778783002
Cr-Commit-Position: refs/heads/master@{#18233}
2017-05-23 07:20:05 -07:00
|
|
|
rtc_source_set("aec_dump_interface") {
|
|
|
|
|
sources = [
|
|
|
|
|
"include/aec_dump.cc",
|
|
|
|
|
"include/aec_dump.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2017-09-04 05:43:17 -07:00
|
|
|
"../../api:array_view",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
AudioProcessingModule has a feature to make a recording of its
configuration, inputs and outputs over a period of time. It is
activated by AudioProcessing::StartRecording. The data is stored in
binary protobuf format in a specified file. The file IO is, as of
this CL, done from the real-time audio thread.
This CL contains an interface for AecDump, a new APM submodule that
will handle the recordings. Calls to the new interface from the
AudioProcessingModule are added. These calls have no effect, and for a
short while, audio_processing_impl.cc will contain two copies of
recording calls.
The original calls are guarded by the WEBRTC_AUDIOPROC_DEBUG_DUMP
preprocessor define. They still have an effect, while the new ones do
not. In the following CLs, the old recording calls will be removed,
and an implementation of AecDump added.
The reasons for the refactoring is to move file IO operations from the
real-time audio thread, to add a top-level low-priority task queue for
logging tasks like this, to simplify and modularize audio_processing_impl.cc
and remove some of the preprocessor directives. These goals will be
archived by the upcoming CLs. The implementation is in
https://codereview.webrtc.org/2865113002.
BUG=webrtc:7404
Review-Url: https://codereview.webrtc.org/2778783002
Cr-Commit-Position: refs/heads/master@{#18233}
2017-05-23 07:20:05 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-12-05 22:47:46 -08:00
|
|
|
rtc_source_set("audio_processing_c") {
|
|
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
|
|
|
|
sources = [
|
|
|
|
|
"agc/legacy/analog_agc.c",
|
|
|
|
|
"agc/legacy/analog_agc.h",
|
|
|
|
|
"agc/legacy/digital_agc.c",
|
|
|
|
|
"agc/legacy/digital_agc.h",
|
|
|
|
|
"agc/legacy/gain_control.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (rtc_prefer_fixed_point) {
|
|
|
|
|
sources += [
|
|
|
|
|
"ns/noise_suppression_x.c",
|
|
|
|
|
"ns/noise_suppression_x.h",
|
|
|
|
|
"ns/nsx_core.c",
|
|
|
|
|
"ns/nsx_core.h",
|
|
|
|
|
"ns/nsx_defines.h",
|
|
|
|
|
]
|
|
|
|
|
if (current_cpu == "mipsel") {
|
|
|
|
|
sources += [ "ns/nsx_core_mips.c" ]
|
|
|
|
|
} else {
|
|
|
|
|
sources += [ "ns/nsx_core_c.c" ]
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
sources += [
|
|
|
|
|
"ns/defines.h",
|
|
|
|
|
"ns/noise_suppression.c",
|
|
|
|
|
"ns/noise_suppression.h",
|
|
|
|
|
"ns/ns_core.c",
|
|
|
|
|
"ns/ns_core.h",
|
|
|
|
|
"ns/windows_private.h",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deps = [
|
2016-12-08 04:10:01 -08:00
|
|
|
"../..:webrtc_common",
|
2016-12-05 22:47:46 -08:00
|
|
|
"../../common_audio",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2016-12-05 22:47:46 -08:00
|
|
|
"../../system_wrappers",
|
|
|
|
|
]
|
2017-01-25 05:34:46 -08:00
|
|
|
|
|
|
|
|
if (rtc_build_with_neon) {
|
|
|
|
|
deps += [ ":audio_processing_neon_c" ]
|
|
|
|
|
}
|
2016-12-05 22:47:46 -08:00
|
|
|
}
|
|
|
|
|
|
2014-09-07 17:36:10 +00:00
|
|
|
if (rtc_enable_protobuf) {
|
2014-08-31 20:32:53 +00:00
|
|
|
proto_library("audioproc_debug_proto") {
|
2015-05-25 12:55:39 +02:00
|
|
|
sources = [
|
|
|
|
|
"debug.proto",
|
|
|
|
|
]
|
2014-08-31 20:32:53 +00:00
|
|
|
|
2016-02-09 08:13:06 -08:00
|
|
|
proto_out_dir = "webrtc/modules/audio_processing"
|
2014-08-31 20:32:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-23 19:08:31 +00:00
|
|
|
if (current_cpu == "x86" || current_cpu == "x64") {
|
2016-09-23 00:38:52 -07:00
|
|
|
rtc_static_library("audio_processing_sse2") {
|
2016-12-08 04:10:01 -08:00
|
|
|
# TODO(ehmaldonado): Remove (bugs.webrtc.org/6828)
|
|
|
|
|
# Errors on cyclic dependency with :audio_processing if enabled.
|
|
|
|
|
check_includes = false
|
|
|
|
|
|
2014-08-31 20:32:53 +00:00
|
|
|
sources = [
|
2016-02-23 14:34:59 -08:00
|
|
|
"aec/aec_core_sse2.cc",
|
2016-10-06 06:46:20 -07:00
|
|
|
"utility/ooura_fft_sse2.cc",
|
|
|
|
|
"utility/ooura_fft_tables_neon_sse2.h",
|
2014-08-31 20:32:53 +00:00
|
|
|
]
|
|
|
|
|
|
2015-04-16 08:57:16 +02:00
|
|
|
if (is_posix) {
|
|
|
|
|
cflags = [ "-msse2" ]
|
|
|
|
|
}
|
2014-08-31 20:32:53 +00:00
|
|
|
|
2016-09-01 08:58:21 -07:00
|
|
|
if (apm_debug_dump) {
|
|
|
|
|
defines = [ "WEBRTC_APM_DEBUG_DUMP=1" ]
|
2016-05-03 07:01:18 -07:00
|
|
|
} else {
|
2016-09-01 08:58:21 -07:00
|
|
|
defines = [ "WEBRTC_APM_DEBUG_DUMP=0" ]
|
2016-05-03 07:01:18 -07:00
|
|
|
}
|
2014-08-31 20:32:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-06-24 18:25:54 -07:00
|
|
|
if (rtc_build_with_neon) {
|
2016-09-23 00:38:52 -07:00
|
|
|
rtc_static_library("audio_processing_neon") {
|
2016-12-08 04:10:01 -08:00
|
|
|
# TODO(ehmaldonado): Remove (bugs.webrtc.org/6828)
|
|
|
|
|
# Errors on cyclic dependency with :audio_processing if enabled.
|
|
|
|
|
check_includes = false
|
|
|
|
|
|
2014-08-31 20:32:53 +00:00
|
|
|
sources = [
|
2016-02-23 14:34:59 -08:00
|
|
|
"aec/aec_core_neon.cc",
|
2016-04-10 22:38:14 -07:00
|
|
|
"aecm/aecm_core_neon.cc",
|
2016-10-06 06:46:20 -07:00
|
|
|
"utility/ooura_fft_neon.cc",
|
|
|
|
|
"utility/ooura_fft_tables_neon_sse2.h",
|
2014-08-31 20:32:53 +00:00
|
|
|
]
|
|
|
|
|
|
2015-02-23 19:08:31 +00:00
|
|
|
if (current_cpu != "arm64") {
|
2015-06-24 18:25:54 -07:00
|
|
|
# Enable compilation for the NEON instruction set. This is needed
|
|
|
|
|
# since //build/config/arm.gni only enables NEON for iOS, not Android.
|
|
|
|
|
# This provides the same functionality as webrtc/build/arm_neon.gypi.
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
|
2015-05-25 12:55:39 +02:00
|
|
|
cflags = [ "-mfpu=neon" ]
|
2014-11-26 17:01:40 +00:00
|
|
|
}
|
|
|
|
|
|
2015-06-24 18:25:54 -07:00
|
|
|
# Disable LTO on NEON targets due to compiler bug.
|
|
|
|
|
# TODO(fdegans): Enable this. See crbug.com/408997.
|
2014-09-07 17:36:10 +00:00
|
|
|
if (rtc_use_lto) {
|
2014-08-31 20:32:53 +00:00
|
|
|
cflags -= [
|
|
|
|
|
"-flto",
|
|
|
|
|
"-ffat-lto-objects",
|
|
|
|
|
]
|
|
|
|
|
}
|
2015-06-24 18:25:54 -07:00
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
"../../common_audio",
|
|
|
|
|
]
|
2016-12-05 22:47:46 -08:00
|
|
|
public_deps = [
|
|
|
|
|
":audio_processing_neon_c",
|
|
|
|
|
]
|
2016-05-03 07:01:18 -07:00
|
|
|
|
2016-09-01 08:58:21 -07:00
|
|
|
if (apm_debug_dump) {
|
|
|
|
|
defines = [ "WEBRTC_APM_DEBUG_DUMP=1" ]
|
2016-05-03 07:01:18 -07:00
|
|
|
} else {
|
2016-09-01 08:58:21 -07:00
|
|
|
defines = [ "WEBRTC_APM_DEBUG_DUMP=0" ]
|
2016-05-03 07:01:18 -07:00
|
|
|
}
|
2014-08-31 20:32:53 +00:00
|
|
|
}
|
2016-12-05 22:47:46 -08:00
|
|
|
|
|
|
|
|
rtc_static_library("audio_processing_neon_c") {
|
2017-01-25 05:34:46 -08:00
|
|
|
# TODO(mbonadei): Remove (bugs.webrtc.org/6828)
|
|
|
|
|
# Errors on cyclic dependency with :audio_processing_c if enabled.
|
|
|
|
|
check_includes = false
|
|
|
|
|
|
2016-12-05 22:47:46 -08:00
|
|
|
sources = [
|
|
|
|
|
"ns/nsx_core_neon.c",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (current_cpu != "arm64") {
|
|
|
|
|
# Enable compilation for the NEON instruction set. This is needed
|
|
|
|
|
# since //build/config/arm.gni only enables NEON for iOS, not Android.
|
|
|
|
|
# This provides the same functionality as webrtc/build/arm_neon.gypi.
|
|
|
|
|
suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
|
|
|
|
|
cflags = [ "-mfpu=neon" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Disable LTO on NEON targets due to compiler bug.
|
|
|
|
|
# TODO(fdegans): Enable this. See crbug.com/408997.
|
|
|
|
|
if (rtc_use_lto) {
|
|
|
|
|
cflags -= [
|
|
|
|
|
"-flto",
|
|
|
|
|
"-ffat-lto-objects",
|
|
|
|
|
]
|
|
|
|
|
}
|
2016-12-08 04:10:01 -08:00
|
|
|
deps = [
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2016-12-08 04:10:01 -08:00
|
|
|
]
|
2016-12-05 22:47:46 -08:00
|
|
|
}
|
2014-06-23 19:21:07 +00:00
|
|
|
}
|
2016-06-13 00:19:48 -07:00
|
|
|
|
|
|
|
|
if (rtc_include_tests) {
|
2016-10-28 05:44:03 -07:00
|
|
|
group("audio_processing_tests") {
|
|
|
|
|
testonly = true
|
|
|
|
|
public_deps = [
|
|
|
|
|
":audioproc_test_utils",
|
|
|
|
|
":click_annotate",
|
|
|
|
|
":nonlinear_beamformer_test",
|
|
|
|
|
":transient_suppression_test",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (rtc_enable_intelligibility_enhancer) {
|
|
|
|
|
public_deps += [ ":intelligibility_proc" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (rtc_enable_protobuf) {
|
2017-01-17 02:37:34 -08:00
|
|
|
public_deps += [
|
|
|
|
|
":audioproc_f",
|
|
|
|
|
":audioproc_unittest_proto",
|
|
|
|
|
":unpack_aecdump",
|
2017-03-18 02:29:13 -07:00
|
|
|
"test/conversational_speech",
|
2017-02-24 05:32:21 -08:00
|
|
|
"test/py_quality_assessment",
|
2017-01-17 02:37:34 -08:00
|
|
|
]
|
2016-10-28 05:44:03 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-01-19 08:27:11 -08:00
|
|
|
rtc_source_set("audio_processing_unittests") {
|
|
|
|
|
testonly = true
|
2017-04-25 04:04:50 -07:00
|
|
|
|
|
|
|
|
# Skip restricting visibility on mobile platforms since the tests on those
|
|
|
|
|
# gets additional generated targets which would require many lines here to
|
|
|
|
|
# cover (which would be confusing to read and hard to maintain).
|
|
|
|
|
if (!is_android && !is_ios) {
|
2017-07-11 06:20:45 -07:00
|
|
|
visibility = [ "..:modules_unittests" ]
|
2017-04-25 04:04:50 -07:00
|
|
|
}
|
2017-01-19 08:27:11 -08:00
|
|
|
sources = [
|
|
|
|
|
"aec/echo_cancellation_unittest.cc",
|
|
|
|
|
"aec/system_delay_unittest.cc",
|
|
|
|
|
"agc/agc_manager_direct_unittest.cc",
|
|
|
|
|
"agc/loudness_histogram_unittest.cc",
|
|
|
|
|
"agc/mock_agc.h",
|
|
|
|
|
"audio_buffer_unittest.cc",
|
|
|
|
|
"beamformer/array_util_unittest.cc",
|
|
|
|
|
"beamformer/complex_matrix_unittest.cc",
|
|
|
|
|
"beamformer/covariance_matrix_generator_unittest.cc",
|
|
|
|
|
"beamformer/matrix_unittest.cc",
|
|
|
|
|
"beamformer/mock_nonlinear_beamformer.h",
|
|
|
|
|
"config_unittest.cc",
|
|
|
|
|
"echo_cancellation_impl_unittest.cc",
|
|
|
|
|
"splitting_filter_unittest.cc",
|
|
|
|
|
"transient/dyadic_decimator_unittest.cc",
|
|
|
|
|
"transient/file_utils.cc",
|
|
|
|
|
"transient/file_utils.h",
|
|
|
|
|
"transient/file_utils_unittest.cc",
|
|
|
|
|
"transient/moving_moments_unittest.cc",
|
|
|
|
|
"transient/transient_detector_unittest.cc",
|
|
|
|
|
"transient/transient_suppressor_unittest.cc",
|
|
|
|
|
"transient/wpd_node_unittest.cc",
|
|
|
|
|
"transient/wpd_tree_unittest.cc",
|
|
|
|
|
"utility/block_mean_calculator_unittest.cc",
|
|
|
|
|
"utility/delay_estimator_unittest.cc",
|
|
|
|
|
"vad/gmm_unittest.cc",
|
|
|
|
|
"vad/pitch_based_vad_unittest.cc",
|
|
|
|
|
"vad/pitch_internal_unittest.cc",
|
|
|
|
|
"vad/pole_zero_filter_unittest.cc",
|
|
|
|
|
"vad/standalone_vad_unittest.cc",
|
|
|
|
|
"vad/vad_audio_proc_unittest.cc",
|
|
|
|
|
"vad/vad_circular_buffer_unittest.cc",
|
|
|
|
|
"vad/voice_activity_detector_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":audio_processing",
|
|
|
|
|
":audioproc_test_utils",
|
2017-04-26 03:38:35 -07:00
|
|
|
"..:module_api",
|
2017-01-19 08:27:11 -08:00
|
|
|
"../..:webrtc_common",
|
2017-09-04 05:43:17 -07:00
|
|
|
"../../api:array_view",
|
2017-09-05 08:43:13 -07:00
|
|
|
"../../api:optional",
|
2017-01-19 08:27:11 -08:00
|
|
|
"../../common_audio:common_audio",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:gtest_prod",
|
|
|
|
|
"../../rtc_base:protobuf_utils",
|
|
|
|
|
"../../rtc_base:rtc_base",
|
|
|
|
|
"../../rtc_base:rtc_base_approved",
|
2017-01-19 08:27:11 -08:00
|
|
|
"../../system_wrappers:system_wrappers",
|
|
|
|
|
"../../test:test_support",
|
2017-04-28 00:59:45 -07:00
|
|
|
"../audio_coding:neteq_tools",
|
2017-06-08 08:12:46 -07:00
|
|
|
"aec_dump:mock_aec_dump_unittests",
|
2017-03-23 05:17:06 -07:00
|
|
|
"test/conversational_speech:unittest",
|
2017-01-19 08:27:11 -08:00
|
|
|
"//testing/gmock",
|
|
|
|
|
"//testing/gtest",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
defines = []
|
|
|
|
|
|
|
|
|
|
if (apm_debug_dump) {
|
|
|
|
|
defines += [ "WEBRTC_APM_DEBUG_DUMP=1" ]
|
|
|
|
|
} else {
|
|
|
|
|
defines += [ "WEBRTC_APM_DEBUG_DUMP=0" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (rtc_enable_intelligibility_enhancer) {
|
|
|
|
|
defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=1" ]
|
|
|
|
|
sources += [
|
|
|
|
|
"intelligibility/intelligibility_enhancer_unittest.cc",
|
|
|
|
|
"intelligibility/intelligibility_utils_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
} else {
|
|
|
|
|
defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=0" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (rtc_prefer_fixed_point) {
|
|
|
|
|
defines += [ "WEBRTC_AUDIOPROC_FIXED_PROFILE" ]
|
|
|
|
|
} else {
|
|
|
|
|
defines += [ "WEBRTC_AUDIOPROC_FLOAT_PROFILE" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (rtc_enable_protobuf) {
|
|
|
|
|
defines += [ "WEBRTC_AUDIOPROC_DEBUG_DUMP" ]
|
|
|
|
|
deps += [
|
2017-01-23 04:26:02 -08:00
|
|
|
":audioproc_debug_proto",
|
2017-01-19 08:27:11 -08:00
|
|
|
":audioproc_protobuf_utils",
|
|
|
|
|
":audioproc_unittest_proto",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_task_queue",
|
2017-06-15 01:55:38 -07:00
|
|
|
"aec_dump",
|
|
|
|
|
"aec_dump:aec_dump_unittests",
|
2017-01-19 08:27:11 -08:00
|
|
|
]
|
|
|
|
|
sources += [
|
2017-02-23 05:16:26 -08:00
|
|
|
"aec3/adaptive_fir_filter_unittest.cc",
|
|
|
|
|
"aec3/aec3_fft_unittest.cc",
|
|
|
|
|
"aec3/aec_state_unittest.cc",
|
2017-01-19 08:27:11 -08:00
|
|
|
"aec3/block_framer_unittest.cc",
|
2017-02-28 22:08:53 -08:00
|
|
|
"aec3/block_processor_metrics_unittest.cc",
|
2017-01-19 08:27:11 -08:00
|
|
|
"aec3/block_processor_unittest.cc",
|
|
|
|
|
"aec3/cascaded_biquad_filter_unittest.cc",
|
2017-02-23 05:16:26 -08:00
|
|
|
"aec3/comfort_noise_generator_unittest.cc",
|
2017-02-08 05:08:56 -08:00
|
|
|
"aec3/decimator_by_4_unittest.cc",
|
2017-01-19 08:27:11 -08:00
|
|
|
"aec3/echo_canceller3_unittest.cc",
|
2017-01-27 03:28:19 -08:00
|
|
|
"aec3/echo_path_delay_estimator_unittest.cc",
|
2017-02-23 05:16:26 -08:00
|
|
|
"aec3/echo_path_variability_unittest.cc",
|
2017-02-28 22:08:53 -08:00
|
|
|
"aec3/echo_remover_metrics_unittest.cc",
|
2017-01-27 03:28:19 -08:00
|
|
|
"aec3/echo_remover_unittest.cc",
|
2017-02-23 05:16:26 -08:00
|
|
|
"aec3/erl_estimator_unittest.cc",
|
|
|
|
|
"aec3/erle_estimator_unittest.cc",
|
|
|
|
|
"aec3/fft_data_unittest.cc",
|
2017-01-19 08:27:11 -08:00
|
|
|
"aec3/frame_blocker_unittest.cc",
|
2017-02-23 05:16:26 -08:00
|
|
|
"aec3/main_filter_update_gain_unittest.cc",
|
2017-02-08 05:08:56 -08:00
|
|
|
"aec3/matched_filter_lag_aggregator_unittest.cc",
|
|
|
|
|
"aec3/matched_filter_unittest.cc",
|
2017-02-23 05:16:26 -08:00
|
|
|
"aec3/output_selector_unittest.cc",
|
2017-04-05 14:18:07 -07:00
|
|
|
"aec3/render_buffer_unittest.cc",
|
2017-01-27 03:28:19 -08:00
|
|
|
"aec3/render_delay_buffer_unittest.cc",
|
2017-02-28 22:08:53 -08:00
|
|
|
"aec3/render_delay_controller_metrics_unittest.cc",
|
2017-01-27 03:28:19 -08:00
|
|
|
"aec3/render_delay_controller_unittest.cc",
|
2017-02-23 05:16:26 -08:00
|
|
|
"aec3/render_signal_analyzer_unittest.cc",
|
|
|
|
|
"aec3/residual_echo_estimator_unittest.cc",
|
|
|
|
|
"aec3/shadow_filter_update_gain_unittest.cc",
|
|
|
|
|
"aec3/subtractor_unittest.cc",
|
|
|
|
|
"aec3/suppression_filter_unittest.cc",
|
|
|
|
|
"aec3/suppression_gain_unittest.cc",
|
2017-04-12 01:20:45 -07:00
|
|
|
"aec3/vector_math_unittest.cc",
|
2017-05-22 06:57:06 -07:00
|
|
|
"agc2/gain_controller2_unittest.cc",
|
2017-01-19 08:27:11 -08:00
|
|
|
"audio_processing_impl_locking_unittest.cc",
|
|
|
|
|
"audio_processing_impl_unittest.cc",
|
|
|
|
|
"audio_processing_unittest.cc",
|
2017-01-23 04:26:02 -08:00
|
|
|
"beamformer/nonlinear_beamformer_unittest.cc",
|
2017-01-19 08:27:11 -08:00
|
|
|
"echo_cancellation_bit_exact_unittest.cc",
|
|
|
|
|
"echo_control_mobile_unittest.cc",
|
|
|
|
|
"echo_detector/circular_buffer_unittest.cc",
|
|
|
|
|
"echo_detector/mean_variance_estimator_unittest.cc",
|
|
|
|
|
"echo_detector/moving_max_unittest.cc",
|
|
|
|
|
"echo_detector/normalized_covariance_estimator_unittest.cc",
|
|
|
|
|
"gain_control_unittest.cc",
|
|
|
|
|
"level_controller/level_controller_unittest.cc",
|
|
|
|
|
"level_estimator_unittest.cc",
|
|
|
|
|
"low_cut_filter_unittest.cc",
|
|
|
|
|
"noise_suppression_unittest.cc",
|
|
|
|
|
"residual_echo_detector_unittest.cc",
|
|
|
|
|
"rms_level_unittest.cc",
|
|
|
|
|
"test/bitexactness_tools.cc",
|
|
|
|
|
"test/bitexactness_tools.h",
|
|
|
|
|
"test/debug_dump_replayer.cc",
|
|
|
|
|
"test/debug_dump_replayer.h",
|
|
|
|
|
"test/debug_dump_test.cc",
|
2017-01-27 03:28:19 -08:00
|
|
|
"test/echo_canceller_test_tools.cc",
|
|
|
|
|
"test/echo_canceller_test_tools.h",
|
|
|
|
|
"test/echo_canceller_test_tools_unittest.cc",
|
2017-01-19 08:27:11 -08:00
|
|
|
"test/test_utils.h",
|
|
|
|
|
"voice_detection_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ((!build_with_chromium || is_win) && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-01-05 07:09:50 -08:00
|
|
|
rtc_source_set("audio_processing_perf_tests") {
|
|
|
|
|
# Has problems with autogenerated targets on Android and iOS
|
|
|
|
|
# Dependency chain (there may also be others):
|
2017-08-15 21:48:37 +08:00
|
|
|
# :audio_processing_perf_tests -->
|
|
|
|
|
# ..:modules_unittests --[private]-->
|
|
|
|
|
# ..:modules_unittests_apk -->
|
|
|
|
|
# ..:modules_unittests_apk__create -->
|
|
|
|
|
# ..:modules_unittests_apk__create__finalize -->
|
|
|
|
|
# ..:modules_unittests_apk__create__package --[private]-->
|
|
|
|
|
# ..:_modules_unittests__library
|
2017-01-05 07:09:50 -08:00
|
|
|
check_includes = false
|
|
|
|
|
testonly = true
|
2017-04-25 04:04:50 -07:00
|
|
|
|
|
|
|
|
# Skip restricting visibility on mobile platforms since the tests on those
|
|
|
|
|
# gets additional generated targets which would require many lines here to
|
|
|
|
|
# cover (which would be confusing to read and hard to maintain).
|
|
|
|
|
if (!is_android && !is_ios) {
|
2017-07-11 06:20:45 -07:00
|
|
|
visibility = [ "../..:webrtc_perf_tests" ]
|
2017-04-25 04:04:50 -07:00
|
|
|
}
|
2017-01-05 07:09:50 -08:00
|
|
|
sources = [
|
|
|
|
|
"audio_processing_performance_unittest.cc",
|
|
|
|
|
"level_controller/level_controller_complexity_unittest.cc",
|
|
|
|
|
"residual_echo_detector_complexity_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":audio_processing",
|
|
|
|
|
":audioproc_test_utils",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:protobuf_utils",
|
2017-01-05 07:09:50 -08:00
|
|
|
"//testing/gtest",
|
|
|
|
|
]
|
2017-04-07 00:59:12 -07:00
|
|
|
|
2017-01-05 07:09:50 -08:00
|
|
|
if (rtc_enable_intelligibility_enhancer) {
|
|
|
|
|
defines = [ "WEBRTC_INTELLIGIBILITY_ENHANCER=1" ]
|
|
|
|
|
} else {
|
|
|
|
|
defines = [ "WEBRTC_INTELLIGIBILITY_ENHANCER=0" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-01-17 02:37:34 -08:00
|
|
|
if (rtc_enable_protobuf) {
|
|
|
|
|
rtc_executable("unpack_aecdump") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"test/unpack.cc",
|
|
|
|
|
]
|
2016-08-07 23:19:30 -07:00
|
|
|
|
2017-01-17 02:37:34 -08:00
|
|
|
deps = [
|
|
|
|
|
":audio_processing",
|
|
|
|
|
":audioproc_debug_proto",
|
|
|
|
|
":audioproc_protobuf_utils",
|
|
|
|
|
":audioproc_test_utils",
|
|
|
|
|
"../..:webrtc_common",
|
|
|
|
|
"../../common_audio",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:protobuf_utils",
|
|
|
|
|
"../../rtc_base:rtc_base_approved",
|
2017-01-17 02:37:34 -08:00
|
|
|
"../../system_wrappers:system_wrappers_default",
|
|
|
|
|
]
|
|
|
|
|
} # unpack_aecdump
|
|
|
|
|
|
|
|
|
|
rtc_executable("audioproc_f") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"test/aec_dump_based_simulator.cc",
|
|
|
|
|
"test/aec_dump_based_simulator.h",
|
|
|
|
|
"test/audio_processing_simulator.cc",
|
|
|
|
|
"test/audio_processing_simulator.h",
|
|
|
|
|
"test/audioproc_float.cc",
|
|
|
|
|
"test/wav_based_simulator.cc",
|
|
|
|
|
"test/wav_based_simulator.h",
|
|
|
|
|
]
|
2016-08-07 23:19:30 -07:00
|
|
|
|
2017-01-17 02:37:34 -08:00
|
|
|
deps = [
|
|
|
|
|
":audio_processing",
|
|
|
|
|
":audioproc_debug_proto",
|
|
|
|
|
":audioproc_protobuf_utils",
|
|
|
|
|
":audioproc_test_utils",
|
2017-09-05 08:43:13 -07:00
|
|
|
"../../api:optional",
|
2017-01-17 02:37:34 -08:00
|
|
|
"../../common_audio:common_audio",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:protobuf_utils",
|
|
|
|
|
"../../rtc_base:rtc_base_approved",
|
|
|
|
|
"../../rtc_base:rtc_task_queue",
|
2017-01-17 02:37:34 -08:00
|
|
|
"../../system_wrappers",
|
|
|
|
|
"../../system_wrappers:system_wrappers_default",
|
|
|
|
|
"../../test:test_support",
|
2017-06-15 01:55:38 -07:00
|
|
|
"aec_dump",
|
|
|
|
|
"aec_dump:aec_dump_impl",
|
2017-01-17 02:37:34 -08:00
|
|
|
"//testing/gtest",
|
|
|
|
|
]
|
|
|
|
|
} # audioproc_f
|
|
|
|
|
}
|
2016-08-07 23:19:30 -07:00
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_source_set("audioproc_test_utils") {
|
2016-06-13 00:19:48 -07:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
2016-07-27 08:14:32 -07:00
|
|
|
"test/audio_buffer_tools.cc",
|
|
|
|
|
"test/audio_buffer_tools.h",
|
2016-11-24 04:17:28 -08:00
|
|
|
"test/performance_timer.cc",
|
|
|
|
|
"test/performance_timer.h",
|
|
|
|
|
"test/simulator_buffers.cc",
|
|
|
|
|
"test/simulator_buffers.h",
|
2016-06-13 00:19:48 -07:00
|
|
|
"test/test_utils.cc",
|
|
|
|
|
"test/test_utils.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2016-12-08 04:10:01 -08:00
|
|
|
":audio_processing",
|
2017-04-26 03:38:35 -07:00
|
|
|
"..:module_api",
|
2017-09-04 05:43:17 -07:00
|
|
|
"../../api:array_view",
|
2017-09-05 08:43:13 -07:00
|
|
|
"../../api:optional",
|
2016-06-13 00:19:48 -07:00
|
|
|
"../../common_audio",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2016-12-08 04:10:01 -08:00
|
|
|
"../../system_wrappers:system_wrappers",
|
2016-06-13 00:19:48 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_executable("transient_suppression_test") {
|
2016-08-25 02:32:43 -07:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"transient/file_utils.cc",
|
|
|
|
|
"transient/file_utils.h",
|
|
|
|
|
"transient/transient_suppression_test.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":audio_processing",
|
2017-04-26 03:38:35 -07:00
|
|
|
"..:module_api",
|
2016-12-08 04:10:01 -08:00
|
|
|
"../..:webrtc_common",
|
|
|
|
|
"../../common_audio:common_audio",
|
2017-08-31 03:21:39 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2016-08-25 02:32:43 -07:00
|
|
|
"../../system_wrappers:metrics_default",
|
2016-12-08 04:10:01 -08:00
|
|
|
"../../system_wrappers:system_wrappers",
|
2016-08-25 02:32:43 -07:00
|
|
|
"../../test:test_support",
|
|
|
|
|
"//testing/gtest",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_executable("click_annotate") {
|
2016-08-25 02:32:43 -07:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"transient/click_annotate.cc",
|
|
|
|
|
"transient/file_utils.cc",
|
|
|
|
|
"transient/file_utils.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":audio_processing",
|
2016-12-08 04:10:01 -08:00
|
|
|
"../..:webrtc_common",
|
2016-08-25 02:32:43 -07:00
|
|
|
"../../system_wrappers:metrics_default",
|
2016-12-08 04:10:01 -08:00
|
|
|
"../../system_wrappers:system_wrappers",
|
2016-08-25 02:32:43 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_executable("nonlinear_beamformer_test") {
|
2016-08-25 02:32:43 -07:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"beamformer/nonlinear_beamformer_test.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":audio_processing",
|
|
|
|
|
":audioproc_test_utils",
|
2016-12-08 04:10:01 -08:00
|
|
|
"../../common_audio:common_audio",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2016-08-25 02:32:43 -07:00
|
|
|
"../../system_wrappers:metrics_default",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-08-26 07:16:04 -07:00
|
|
|
if (rtc_enable_intelligibility_enhancer) {
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_executable("intelligibility_proc") {
|
2016-08-26 07:16:04 -07:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"intelligibility/test/intelligibility_proc.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":audio_processing",
|
|
|
|
|
":audioproc_test_utils",
|
2017-08-31 03:21:39 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2016-08-26 07:16:04 -07:00
|
|
|
"../../system_wrappers:metrics_default",
|
|
|
|
|
"../../test:test_support",
|
|
|
|
|
"//testing/gtest",
|
|
|
|
|
]
|
2016-08-25 02:32:43 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-06-13 00:19:48 -07:00
|
|
|
if (rtc_enable_protobuf) {
|
|
|
|
|
proto_library("audioproc_unittest_proto") {
|
|
|
|
|
sources = [
|
|
|
|
|
"test/unittest.proto",
|
|
|
|
|
]
|
2017-02-28 08:01:46 -08:00
|
|
|
proto_out_dir = "webrtc/modules/audio_processing/test"
|
2016-06-13 00:19:48 -07:00
|
|
|
}
|
|
|
|
|
|
2016-09-23 00:38:52 -07:00
|
|
|
rtc_static_library("audioproc_protobuf_utils") {
|
2016-06-13 00:19:48 -07:00
|
|
|
sources = [
|
|
|
|
|
"test/protobuf_utils.cc",
|
|
|
|
|
"test/protobuf_utils.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2016-08-19 02:11:07 -07:00
|
|
|
":audioproc_debug_proto",
|
2016-12-08 04:10:01 -08:00
|
|
|
"../..:webrtc_common",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:protobuf_utils",
|
|
|
|
|
"../../rtc_base:rtc_base_approved",
|
2016-06-13 00:19:48 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|