| OLD | NEW |
| 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
| 4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
| 5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 | 8 |
| 9 import("//build/config/arm.gni") | 9 import("//build/config/arm.gni") |
| 10 import("//third_party/protobuf/proto_library.gni") | 10 import("//third_party/protobuf/proto_library.gni") |
| 11 import("../../build/webrtc.gni") | 11 import("../../build/webrtc.gni") |
| 12 | 12 |
| 13 declare_args() { | 13 declare_args() { |
| 14 # Outputs some low-level debug files. | 14 # Outputs some low-level debug files. |
| 15 aec_debug_dump = false | 15 aec_debug_dump = false |
| 16 | 16 |
| 17 # Disables the usual mode where we trust the reported system delay | 17 # Disables the usual mode where we trust the reported system delay |
| 18 # values the AEC receives. The corresponding define is set appropriately | 18 # values the AEC receives. The corresponding define is set appropriately |
| 19 # in the code, but it can be force-enabled here for testing. | 19 # in the code, but it can be force-enabled here for testing. |
| 20 aec_untrusted_delay_for_testing = false | 20 aec_untrusted_delay_for_testing = false |
| 21 |
| 22 # Chooses whether the intelligibility enhancer should be used. |
| 23 intelligibility_enhancer = false |
| 21 } | 24 } |
| 22 | 25 |
| 23 source_set("audio_processing") { | 26 source_set("audio_processing") { |
| 24 sources = [ | 27 sources = [ |
| 25 "aec/aec_core.cc", | 28 "aec/aec_core.cc", |
| 26 "aec/aec_core.h", | 29 "aec/aec_core.h", |
| 27 "aec/aec_core_optimized_methods.h", | 30 "aec/aec_core_optimized_methods.h", |
| 28 "aec/aec_rdft.cc", | 31 "aec/aec_rdft.cc", |
| 29 "aec/aec_rdft.h", | 32 "aec/aec_rdft.h", |
| 30 "aec/aec_resampler.cc", | 33 "aec/aec_resampler.cc", |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 "echo_cancellation_impl.h", | 70 "echo_cancellation_impl.h", |
| 68 "echo_control_mobile_impl.cc", | 71 "echo_control_mobile_impl.cc", |
| 69 "echo_control_mobile_impl.h", | 72 "echo_control_mobile_impl.h", |
| 70 "gain_control_for_experimental_agc.cc", | 73 "gain_control_for_experimental_agc.cc", |
| 71 "gain_control_for_experimental_agc.h", | 74 "gain_control_for_experimental_agc.h", |
| 72 "gain_control_impl.cc", | 75 "gain_control_impl.cc", |
| 73 "gain_control_impl.h", | 76 "gain_control_impl.h", |
| 74 "high_pass_filter_impl.cc", | 77 "high_pass_filter_impl.cc", |
| 75 "high_pass_filter_impl.h", | 78 "high_pass_filter_impl.h", |
| 76 "include/audio_processing.h", | 79 "include/audio_processing.h", |
| 77 "intelligibility/intelligibility_enhancer.cc", | |
| 78 "intelligibility/intelligibility_enhancer.h", | |
| 79 "intelligibility/intelligibility_utils.cc", | |
| 80 "intelligibility/intelligibility_utils.h", | |
| 81 "level_controller/biquad_filter.cc", | 80 "level_controller/biquad_filter.cc", |
| 82 "level_controller/biquad_filter.h", | 81 "level_controller/biquad_filter.h", |
| 83 "level_controller/down_sampler.cc", | 82 "level_controller/down_sampler.cc", |
| 84 "level_controller/down_sampler.h", | 83 "level_controller/down_sampler.h", |
| 85 "level_controller/gain_applier.cc", | 84 "level_controller/gain_applier.cc", |
| 86 "level_controller/gain_applier.h", | 85 "level_controller/gain_applier.h", |
| 87 "level_controller/gain_selector.cc", | 86 "level_controller/gain_selector.cc", |
| 88 "level_controller/gain_selector.h", | 87 "level_controller/gain_selector.h", |
| 89 "level_controller/lc_constants.h", | 88 "level_controller/lc_constants.h", |
| 90 "level_controller/level_controller.cc", | 89 "level_controller/level_controller.cc", |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 174 |
| 176 if (aec_untrusted_delay_for_testing) { | 175 if (aec_untrusted_delay_for_testing) { |
| 177 defines += [ "WEBRTC_UNTRUSTED_DELAY" ] | 176 defines += [ "WEBRTC_UNTRUSTED_DELAY" ] |
| 178 } | 177 } |
| 179 | 178 |
| 180 if (rtc_enable_protobuf) { | 179 if (rtc_enable_protobuf) { |
| 181 defines += [ "WEBRTC_AUDIOPROC_DEBUG_DUMP" ] | 180 defines += [ "WEBRTC_AUDIOPROC_DEBUG_DUMP" ] |
| 182 deps += [ ":audioproc_debug_proto" ] | 181 deps += [ ":audioproc_debug_proto" ] |
| 183 } | 182 } |
| 184 | 183 |
| 184 if (intelligibility_enhancer) { |
| 185 defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=1" ] |
| 186 sources += [ |
| 187 "intelligibility/intelligibility_enhancer.cc", |
| 188 "intelligibility/intelligibility_enhancer.h", |
| 189 "intelligibility/intelligibility_utils.cc", |
| 190 "intelligibility/intelligibility_utils.h", |
| 191 ] |
| 192 } else { |
| 193 defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=0" ] |
| 194 } |
| 195 |
| 185 if (rtc_prefer_fixed_point) { | 196 if (rtc_prefer_fixed_point) { |
| 186 defines += [ "WEBRTC_NS_FIXED" ] | 197 defines += [ "WEBRTC_NS_FIXED" ] |
| 187 sources += [ | 198 sources += [ |
| 188 "ns/noise_suppression_x.c", | 199 "ns/noise_suppression_x.c", |
| 189 "ns/noise_suppression_x.h", | 200 "ns/noise_suppression_x.h", |
| 190 "ns/nsx_core.c", | 201 "ns/nsx_core.c", |
| 191 "ns/nsx_core.h", | 202 "ns/nsx_core.h", |
| 192 "ns/nsx_defines.h", | 203 "ns/nsx_defines.h", |
| 193 ] | 204 ] |
| 194 if (current_cpu == "mipsel") { | 205 if (current_cpu == "mipsel") { |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 "test/protobuf_utils.cc", | 455 "test/protobuf_utils.cc", |
| 445 "test/protobuf_utils.h", | 456 "test/protobuf_utils.h", |
| 446 ] | 457 ] |
| 447 | 458 |
| 448 deps = [ | 459 deps = [ |
| 449 ":audioproc_debug_proto", | 460 ":audioproc_debug_proto", |
| 450 ] | 461 ] |
| 451 } | 462 } |
| 452 } | 463 } |
| 453 } | 464 } |
| OLD | NEW |