1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216
|
apm_flags = ['-DWEBRTC_APM_DEBUG_DUMP=0']
webrtc_audio_processing_sources = [
'aec_dump/null_aec_dump_factory.cc',
'aec3/adaptive_fir_filter.cc',
'aec3/adaptive_fir_filter_erl.cc',
'aec3/aec3_common.cc',
'aec3/aec3_fft.cc',
'aec3/aec_state.cc',
'aec3/alignment_mixer.cc',
'aec3/api_call_jitter_metrics.cc',
'aec3/block_buffer.cc',
'aec3/block_delay_buffer.cc',
'aec3/block_framer.cc',
'aec3/block_processor.cc',
'aec3/block_processor_metrics.cc',
'aec3/clockdrift_detector.cc',
'aec3/coarse_filter_update_gain.cc',
'aec3/comfort_noise_generator.cc',
'aec3/decimator.cc',
'aec3/dominant_nearend_detector.cc',
'aec3/downsampled_render_buffer.cc',
'aec3/echo_audibility.cc',
'aec3/echo_canceller3.cc',
'aec3/echo_path_delay_estimator.cc',
'aec3/echo_path_variability.cc',
'aec3/echo_remover.cc',
'aec3/echo_remover_metrics.cc',
'aec3/erle_estimator.cc',
'aec3/erl_estimator.cc',
'aec3/fft_buffer.cc',
'aec3/filter_analyzer.cc',
'aec3/frame_blocker.cc',
'aec3/fullband_erle_estimator.cc',
'aec3/matched_filter.cc',
'aec3/matched_filter_lag_aggregator.cc',
'aec3/moving_average.cc',
'aec3/refined_filter_update_gain.cc',
'aec3/render_buffer.cc',
'aec3/render_delay_buffer.cc',
'aec3/render_delay_controller.cc',
'aec3/render_delay_controller_metrics.cc',
'aec3/render_signal_analyzer.cc',
'aec3/residual_echo_estimator.cc',
'aec3/reverb_decay_estimator.cc',
'aec3/reverb_frequency_response.cc',
'aec3/reverb_model.cc',
'aec3/reverb_model_estimator.cc',
'aec3/signal_dependent_erle_estimator.cc',
'aec3/spectrum_buffer.cc',
'aec3/stationarity_estimator.cc',
'aec3/subband_erle_estimator.cc',
'aec3/subband_nearend_detector.cc',
'aec3/subtractor.cc',
'aec3/subtractor_output_analyzer.cc',
'aec3/subtractor_output.cc',
'aec3/suppression_filter.cc',
'aec3/suppression_gain.cc',
'aec3/transparent_mode.cc',
'aecm/aecm_core.cc',
'aecm/echo_control_mobile.cc',
'agc/agc.cc',
'agc/agc_manager_direct.cc',
'agc/legacy/analog_agc.cc',
'agc/legacy/digital_agc.cc',
'agc/loudness_histogram.cc',
'agc/utility.cc',
'agc2/adaptive_agc.cc',
'agc2/adaptive_digital_gain_applier.cc',
'agc2/adaptive_mode_level_estimator_agc.cc',
'agc2/adaptive_mode_level_estimator.cc',
'agc2/agc2_testing_common.cc',
'agc2/biquad_filter.cc',
'agc2/compute_interpolated_gain_curve.cc',
'agc2/down_sampler.cc',
'agc2/fixed_digital_level_estimator.cc',
'agc2/gain_applier.cc',
'agc2/interpolated_gain_curve.cc',
'agc2/limiter.cc',
'agc2/limiter_db_gain_curve.cc',
'agc2/noise_level_estimator.cc',
'agc2/noise_spectrum_estimator.cc',
'agc2/rnn_vad/auto_correlation.cc',
'agc2/rnn_vad/common.cc',
'agc2/rnn_vad/features_extraction.cc',
'agc2/rnn_vad/lp_residual.cc',
'agc2/rnn_vad/pitch_search.cc',
'agc2/rnn_vad/pitch_search_internal.cc',
'agc2/rnn_vad/rnn.cc',
'agc2/rnn_vad/spectral_features.cc',
'agc2/rnn_vad/spectral_features_internal.cc',
'agc2/saturation_protector.cc',
'agc2/signal_classifier.cc',
'agc2/vad_with_level.cc',
'agc2/vector_float_frame.cc',
'audio_buffer.cc',
'audio_processing_builder_impl.cc',
'audio_processing_impl.cc',
'echo_control_mobile_impl.cc',
'echo_detector/circular_buffer.cc',
'echo_detector/mean_variance_estimator.cc',
'echo_detector/moving_max.cc',
'echo_detector/normalized_covariance_estimator.cc',
'gain_control_impl.cc',
'gain_controller2.cc',
'high_pass_filter.cc',
'include/aec_dump.cc',
'include/audio_frame_proxies.cc',
'include/audio_processing.cc',
'include/audio_processing_statistics.cc',
'include/config.cc',
'level_estimator.cc',
'logging/apm_data_dumper.cc',
'ns/fast_math.cc',
'ns/histograms.cc',
'ns/noise_estimator.cc',
'ns/noise_suppressor.cc',
'ns/ns_fft.cc',
'ns/prior_signal_model.cc',
'ns/prior_signal_model_estimator.cc',
'ns/quantile_noise_estimator.cc',
'ns/signal_model.cc',
'ns/signal_model_estimator.cc',
'ns/speech_probability_estimator.cc',
'ns/suppression_params.cc',
'ns/wiener_filter.cc',
'optionally_built_submodule_creators.cc',
'residual_echo_detector.cc',
'rms_level.cc',
'splitting_filter.cc',
'three_band_filter_bank.cc',
'transient/file_utils.cc',
'transient/moving_moments.cc',
'transient/transient_detector.cc',
'transient/transient_suppressor_impl.cc',
'transient/wpd_node.cc',
'transient/wpd_tree.cc',
'typing_detection.cc',
'utility/cascaded_biquad_filter.cc',
'utility/delay_estimator.cc',
'utility/delay_estimator_wrapper.cc',
'utility/pffft_wrapper.cc',
'vad/gmm.cc',
'vad/pitch_based_vad.cc',
'vad/pitch_internal.cc',
'vad/pole_zero_filter.cc',
'vad/standalone_vad.cc',
'vad/vad_audio_proc.cc',
'vad/vad_circular_buffer.cc',
'vad/voice_activity_detector.cc',
'voice_detection.cc',
]
webrtc_audio_processing_include_headers = [
'include/audio_processing.h',
'include/audio_processing_statistics.h',
'include/config.h',
]
extra_libs = []
if have_x86
extra_libs += [
static_library('webrtc_audio_processing_privatearch',
[
'aec3/adaptive_fir_filter_avx2.cc',
'aec3/adaptive_fir_filter_erl_avx2.cc',
'aec3/fft_data_avx2.cc',
'aec3/matched_filter_avx2.cc',
'aec3/vector_math_avx2.cc',
],
dependencies: common_deps,
include_directories: webrtc_inc,
c_args: common_cflags + apm_flags + ['-mavx2', '-mfma'],
cpp_args: common_cxxflags + apm_flags + ['-mavx2', '-mfma']
)
]
endif
if have_mips
webrtc_audio_processing_sources += [
'aecm/aecm_core_mips.cc',
]
else
webrtc_audio_processing_sources += [
'aecm/aecm_core_c.cc',
]
endif
if have_neon
webrtc_audio_processing_sources += [
'aecm/aecm_core_neon.cc',
]
endif
install_headers(webrtc_audio_processing_include_headers,
subdir: join_paths(include_subdir, 'modules', 'audio_processing', 'include')
)
libwebrtc_audio_processing = library(apm_project_name,
webrtc_audio_processing_sources,
dependencies: [
base_dep,
api_dep,
isac_vad_dep,
system_wrappers_dep,
common_audio_dep,
pffft_dep,
rnnoise_dep,
] + common_deps,
link_with: extra_libs,
include_directories: webrtc_inc,
c_args: common_cflags + apm_flags,
cpp_args: common_cxxflags + apm_flags,
soversion: apm_minor_version,
install: true
)
|