You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

752 lines
20 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
  2. #
  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
  5. # tree. An additional intellectual property rights grant can be found
  6. # in the file PATENTS. All contributing project authors may
  7. # be found in the AUTHORS file in the root of the source tree.
  8. import("../../webrtc.gni")
  9. if (rtc_enable_protobuf) {
  10. import("//third_party/protobuf/proto_library.gni")
  11. }
  12. declare_args() {
  13. # Disables the usual mode where we trust the reported system delay
  14. # values the AEC receives. The corresponding define is set appropriately
  15. # in the code, but it can be force-enabled here for testing.
  16. aec_untrusted_delay_for_testing = false
  17. }
  18. config("apm_debug_dump") {
  19. if (apm_debug_dump) {
  20. defines = [ "WEBRTC_APM_DEBUG_DUMP=1" ]
  21. } else {
  22. defines = [ "WEBRTC_APM_DEBUG_DUMP=0" ]
  23. }
  24. }
  25. rtc_library("config") {
  26. visibility = [ ":*" ]
  27. sources = [
  28. "include/config.cc",
  29. "include/config.h",
  30. ]
  31. deps = [
  32. "../../rtc_base:macromagic",
  33. "../../rtc_base/system:rtc_export",
  34. ]
  35. }
  36. rtc_library("api") {
  37. visibility = [ "*" ]
  38. sources = [
  39. "include/audio_processing.cc",
  40. "include/audio_processing.h",
  41. ]
  42. deps = [
  43. ":audio_frame_view",
  44. ":audio_generator_interface",
  45. ":audio_processing_statistics",
  46. ":config",
  47. "../../api:scoped_refptr",
  48. "../../api/audio:aec3_config",
  49. "../../api/audio:echo_control",
  50. "../../rtc_base:deprecation",
  51. "../../rtc_base:macromagic",
  52. "../../rtc_base:rtc_base_approved",
  53. "../../rtc_base/system:arch",
  54. "../../rtc_base/system:rtc_export",
  55. "agc:gain_control_interface",
  56. "//third_party/abseil-cpp/absl/types:optional",
  57. ]
  58. }
  59. rtc_library("audio_buffer") {
  60. visibility = [ "*" ]
  61. configs += [ ":apm_debug_dump" ]
  62. sources = [
  63. "audio_buffer.cc",
  64. "audio_buffer.h",
  65. "splitting_filter.cc",
  66. "splitting_filter.h",
  67. "three_band_filter_bank.cc",
  68. "three_band_filter_bank.h",
  69. ]
  70. defines = []
  71. deps = [
  72. ":api",
  73. "../../api/audio:audio_frame_api",
  74. "../../common_audio",
  75. "../../common_audio:common_audio_c",
  76. "../../rtc_base:checks",
  77. ]
  78. }
  79. rtc_library("high_pass_filter") {
  80. visibility = [ "*" ]
  81. sources = [
  82. "high_pass_filter.cc",
  83. "high_pass_filter.h",
  84. ]
  85. defines = []
  86. deps = [
  87. ":audio_buffer",
  88. "../../api:array_view",
  89. "../../rtc_base:checks",
  90. "utility:cascaded_biquad_filter",
  91. ]
  92. }
  93. rtc_library("audio_processing") {
  94. visibility = [ "*" ]
  95. configs += [ ":apm_debug_dump" ]
  96. sources = [
  97. "audio_processing_impl.cc",
  98. "audio_processing_impl.h",
  99. "common.h",
  100. "echo_cancellation_impl.cc",
  101. "echo_cancellation_impl.h",
  102. "echo_control_mobile_impl.cc",
  103. "echo_control_mobile_impl.h",
  104. "echo_detector/circular_buffer.cc",
  105. "echo_detector/circular_buffer.h",
  106. "echo_detector/mean_variance_estimator.cc",
  107. "echo_detector/mean_variance_estimator.h",
  108. "echo_detector/moving_max.cc",
  109. "echo_detector/moving_max.h",
  110. "echo_detector/normalized_covariance_estimator.cc",
  111. "echo_detector/normalized_covariance_estimator.h",
  112. "gain_control_for_experimental_agc.cc",
  113. "gain_control_for_experimental_agc.h",
  114. "gain_control_impl.cc",
  115. "gain_control_impl.h",
  116. "gain_controller2.cc",
  117. "gain_controller2.h",
  118. "include/aec_dump.cc",
  119. "include/aec_dump.h",
  120. "level_estimator.cc",
  121. "level_estimator.h",
  122. "noise_suppression.cc",
  123. "noise_suppression.h",
  124. "render_queue_item_verifier.h",
  125. "residual_echo_detector.cc",
  126. "residual_echo_detector.h",
  127. "rms_level.cc",
  128. "rms_level.h",
  129. "transient/common.h",
  130. "transient/daubechies_8_wavelet_coeffs.h",
  131. "transient/dyadic_decimator.h",
  132. "transient/moving_moments.cc",
  133. "transient/moving_moments.h",
  134. "transient/transient_detector.cc",
  135. "transient/transient_detector.h",
  136. "transient/transient_suppressor.cc",
  137. "transient/transient_suppressor.h",
  138. "transient/wpd_node.cc",
  139. "transient/wpd_node.h",
  140. "transient/wpd_tree.cc",
  141. "transient/wpd_tree.h",
  142. "typing_detection.cc",
  143. "typing_detection.h",
  144. "voice_detection.cc",
  145. "voice_detection.h",
  146. ]
  147. defines = []
  148. deps = [
  149. ":api",
  150. ":apm_logging",
  151. ":audio_buffer",
  152. ":audio_frame_view",
  153. ":audio_generator_interface",
  154. ":audio_processing_c",
  155. ":audio_processing_statistics",
  156. ":config",
  157. ":high_pass_filter",
  158. "../../api:array_view",
  159. "../../api:function_view",
  160. "../../api/audio:aec3_config",
  161. "../../api/audio:audio_frame_api",
  162. "../../api/audio:echo_control",
  163. "../../audio/utility:audio_frame_operations",
  164. "../../common_audio:common_audio_c",
  165. "../../common_audio/third_party/fft4g",
  166. "../../rtc_base:checks",
  167. "../../rtc_base:deprecation",
  168. "../../rtc_base:gtest_prod",
  169. "../../rtc_base:ignore_wundef",
  170. "../../rtc_base:safe_minmax",
  171. "../../rtc_base:sanitizer",
  172. "../../rtc_base/system:rtc_export",
  173. "../../system_wrappers:cpu_features_api",
  174. "../../system_wrappers:field_trial",
  175. "../../system_wrappers:metrics",
  176. "aec",
  177. "aec:aec_core",
  178. "aec3",
  179. "aecm:aecm_core",
  180. "agc",
  181. "agc:agc_legacy_c",
  182. "agc:gain_control_interface",
  183. "agc2:adaptive_digital",
  184. "agc2:fixed_digital",
  185. "agc2:gain_applier",
  186. "vad",
  187. "//third_party/abseil-cpp/absl/types:optional",
  188. ]
  189. if (aec_untrusted_delay_for_testing) {
  190. defines += [ "WEBRTC_UNTRUSTED_DELAY" ]
  191. }
  192. if (rtc_prefer_fixed_point) {
  193. defines += [ "WEBRTC_NS_FIXED" ]
  194. } else {
  195. defines += [ "WEBRTC_NS_FLOAT" ]
  196. }
  197. deps += [
  198. "../../common_audio",
  199. "../../common_audio:fir_filter",
  200. "../../common_audio:fir_filter_factory",
  201. "../../rtc_base:rtc_base_approved",
  202. "../../system_wrappers",
  203. ]
  204. }
  205. rtc_library("audio_processing_statistics") {
  206. visibility = [ "*" ]
  207. sources = [
  208. "include/audio_processing_statistics.cc",
  209. "include/audio_processing_statistics.h",
  210. ]
  211. deps = [
  212. "../../rtc_base/system:rtc_export",
  213. "//third_party/abseil-cpp/absl/types:optional",
  214. ]
  215. }
  216. rtc_source_set("audio_frame_view") {
  217. sources = [
  218. "include/audio_frame_view.h",
  219. ]
  220. deps = [
  221. "../../api:array_view",
  222. ]
  223. }
  224. rtc_source_set("audio_generator_interface") {
  225. visibility = [ "*" ]
  226. sources = [
  227. "include/audio_generator.h",
  228. ]
  229. deps = [
  230. ":audio_frame_view",
  231. "../../rtc_base:rtc_base_approved",
  232. "../../system_wrappers",
  233. ]
  234. }
  235. rtc_library("audio_generator_factory") {
  236. visibility = [ "*" ]
  237. testonly = true
  238. sources = [
  239. "include/audio_generator_factory.cc",
  240. "include/audio_generator_factory.h",
  241. ]
  242. deps = [
  243. ":audio_generator_interface",
  244. ":file_audio_generator",
  245. "../../common_audio",
  246. "../../rtc_base:rtc_base_approved",
  247. "../../system_wrappers",
  248. ]
  249. }
  250. rtc_library("file_audio_generator") {
  251. sources = [
  252. "audio_generator/file_audio_generator.cc",
  253. "audio_generator/file_audio_generator.h",
  254. ]
  255. deps = [
  256. ":audio_generator_interface",
  257. "../../common_audio",
  258. "../../rtc_base:rtc_base_approved",
  259. "../../system_wrappers",
  260. ]
  261. }
  262. rtc_source_set("audio_processing_c") {
  263. visibility = [ ":*" ] # Only targets in this file can depend on this.
  264. sources = [
  265. "ns/windows_private.h",
  266. ]
  267. if (rtc_prefer_fixed_point) {
  268. sources += [
  269. "ns/noise_suppression_x.c",
  270. "ns/noise_suppression_x.h",
  271. "ns/nsx_core.c",
  272. "ns/nsx_core.h",
  273. "ns/nsx_defines.h",
  274. ]
  275. if (current_cpu == "mipsel") {
  276. sources += [ "ns/nsx_core_mips.c" ]
  277. } else {
  278. sources += [ "ns/nsx_core_c.c" ]
  279. }
  280. } else {
  281. sources += [
  282. "ns/defines.h",
  283. "ns/noise_suppression.c",
  284. "ns/noise_suppression.h",
  285. "ns/ns_core.c",
  286. "ns/ns_core.h",
  287. ]
  288. }
  289. deps = [
  290. "../../common_audio",
  291. "../../common_audio:common_audio_c",
  292. "../../common_audio/third_party/fft4g",
  293. "../../rtc_base:checks",
  294. "../../rtc_base:rtc_base_approved",
  295. "../../system_wrappers:cpu_features_api",
  296. "agc:agc_legacy_c",
  297. ]
  298. if (rtc_build_with_neon) {
  299. sources += [ "ns/nsx_core_neon.c" ]
  300. if (current_cpu != "arm64") {
  301. # Enable compilation for the NEON instruction set.
  302. suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
  303. cflags = [ "-mfpu=neon" ]
  304. }
  305. }
  306. }
  307. if (rtc_enable_protobuf) {
  308. proto_library("audioproc_debug_proto") {
  309. sources = [
  310. "debug.proto",
  311. ]
  312. proto_out_dir = "modules/audio_processing"
  313. }
  314. }
  315. rtc_library("apm_logging") {
  316. configs += [ ":apm_debug_dump" ]
  317. sources = [
  318. "logging/apm_data_dumper.cc",
  319. "logging/apm_data_dumper.h",
  320. ]
  321. deps = [
  322. "../../api:array_view",
  323. "../../common_audio",
  324. "../../rtc_base:checks",
  325. "../../rtc_base:rtc_base_approved",
  326. ]
  327. defines = []
  328. }
  329. if (rtc_include_tests) {
  330. rtc_source_set("mocks") {
  331. testonly = true
  332. sources = [
  333. "include/mock_audio_processing.h",
  334. ]
  335. deps = [
  336. ":api",
  337. ":audio_buffer",
  338. ":audio_processing",
  339. ":audio_processing_statistics",
  340. "../../test:test_support",
  341. ]
  342. }
  343. group("audio_processing_tests") {
  344. testonly = true
  345. deps = [
  346. ":audioproc_test_utils",
  347. ":click_annotate",
  348. ":transient_suppression_test",
  349. ]
  350. if (rtc_enable_protobuf) {
  351. deps += [
  352. ":audioproc_f",
  353. ":audioproc_unittest_proto",
  354. "aec_dump:aec_dump_unittests",
  355. "test/conversational_speech",
  356. "test/py_quality_assessment",
  357. ]
  358. }
  359. }
  360. rtc_library("audio_processing_unittests") {
  361. testonly = true
  362. configs += [ ":apm_debug_dump" ]
  363. sources = [
  364. "audio_buffer_unittest.cc",
  365. "audio_frame_view_unittest.cc",
  366. "config_unittest.cc",
  367. "echo_cancellation_impl_unittest.cc",
  368. "echo_control_mobile_unittest.cc",
  369. "gain_controller2_unittest.cc",
  370. "splitting_filter_unittest.cc",
  371. "test/fake_recording_device_unittest.cc",
  372. "transient/dyadic_decimator_unittest.cc",
  373. "transient/file_utils.cc",
  374. "transient/file_utils.h",
  375. "transient/file_utils_unittest.cc",
  376. "transient/moving_moments_unittest.cc",
  377. "transient/transient_detector_unittest.cc",
  378. "transient/transient_suppressor_unittest.cc",
  379. "transient/wpd_node_unittest.cc",
  380. "transient/wpd_tree_unittest.cc",
  381. ]
  382. deps = [
  383. ":analog_mic_simulation",
  384. ":api",
  385. ":apm_logging",
  386. ":audio_buffer",
  387. ":audio_frame_view",
  388. ":audio_processing",
  389. ":audioproc_test_utils",
  390. ":config",
  391. ":file_audio_generator_unittests",
  392. ":high_pass_filter",
  393. ":mocks",
  394. "../../api:array_view",
  395. "../../api:scoped_refptr",
  396. "../../api/audio:aec3_config",
  397. "../../api/audio:aec3_factory",
  398. "../../common_audio",
  399. "../../common_audio:common_audio_c",
  400. "../../rtc_base",
  401. "../../rtc_base:checks",
  402. "../../rtc_base:gtest_prod",
  403. "../../rtc_base:ignore_wundef",
  404. "../../rtc_base:protobuf_utils",
  405. "../../rtc_base:rtc_base_approved",
  406. "../../rtc_base:rtc_base_tests_utils",
  407. "../../rtc_base:safe_minmax",
  408. "../../rtc_base:task_queue_for_test",
  409. "../../rtc_base/system:arch",
  410. "../../rtc_base/system:file_wrapper",
  411. "../../system_wrappers",
  412. "../../system_wrappers:cpu_features_api",
  413. "../../test:fileutils",
  414. "../../test:test_support",
  415. "../audio_coding:neteq_input_audio_tools",
  416. "aec:aec_core",
  417. "aec:aec_unittests",
  418. "aec_dump:mock_aec_dump_unittests",
  419. "agc:agc_unittests",
  420. "agc2:adaptive_digital_unittests",
  421. "agc2:biquad_filter_unittests",
  422. "agc2:fixed_digital_unittests",
  423. "agc2:noise_estimator_unittests",
  424. "agc2:rnn_vad_with_level_unittests",
  425. "agc2:test_utils",
  426. "agc2/rnn_vad:unittests",
  427. "test/conversational_speech:unittest",
  428. "utility:block_mean_calculator_unittest",
  429. "utility:legacy_delay_estimator_unittest",
  430. "utility:pffft_wrapper_unittest",
  431. "vad:vad_unittests",
  432. "//testing/gtest",
  433. "//third_party/abseil-cpp/absl/types:optional",
  434. ]
  435. defines = []
  436. if (rtc_prefer_fixed_point) {
  437. defines += [ "WEBRTC_AUDIOPROC_FIXED_PROFILE" ]
  438. } else {
  439. defines += [ "WEBRTC_AUDIOPROC_FLOAT_PROFILE" ]
  440. }
  441. if (rtc_enable_protobuf) {
  442. defines += [ "WEBRTC_AUDIOPROC_DEBUG_DUMP" ]
  443. deps += [
  444. ":audioproc_debug_proto",
  445. ":audioproc_protobuf_utils",
  446. ":audioproc_test_utils",
  447. ":audioproc_unittest_proto",
  448. ":runtime_settings_protobuf_utils",
  449. "../../api/audio:audio_frame_api",
  450. "../../api/audio:echo_control",
  451. "../../rtc_base:rtc_base_tests_utils",
  452. "../../rtc_base:rtc_task_queue",
  453. "aec_dump",
  454. "aec_dump:aec_dump_unittests",
  455. "//third_party/abseil-cpp/absl/flags:flag",
  456. ]
  457. sources += [
  458. "audio_processing_impl_locking_unittest.cc",
  459. "audio_processing_impl_unittest.cc",
  460. "audio_processing_unittest.cc",
  461. "echo_cancellation_bit_exact_unittest.cc",
  462. "echo_control_mobile_bit_exact_unittest.cc",
  463. "echo_detector/circular_buffer_unittest.cc",
  464. "echo_detector/mean_variance_estimator_unittest.cc",
  465. "echo_detector/moving_max_unittest.cc",
  466. "echo_detector/normalized_covariance_estimator_unittest.cc",
  467. "gain_control_unittest.cc",
  468. "high_pass_filter_unittest.cc",
  469. "level_estimator_unittest.cc",
  470. "noise_suppression_unittest.cc",
  471. "residual_echo_detector_unittest.cc",
  472. "rms_level_unittest.cc",
  473. "test/debug_dump_replayer.cc",
  474. "test/debug_dump_replayer.h",
  475. "test/debug_dump_test.cc",
  476. "test/echo_canceller_test_tools.cc",
  477. "test/echo_canceller_test_tools.h",
  478. "test/echo_canceller_test_tools_unittest.cc",
  479. "test/echo_control_mock.h",
  480. "test/test_utils.h",
  481. "voice_detection_unittest.cc",
  482. ]
  483. }
  484. }
  485. rtc_library("audio_processing_perf_tests") {
  486. testonly = true
  487. configs += [ ":apm_debug_dump" ]
  488. sources = [
  489. "audio_processing_performance_unittest.cc",
  490. ]
  491. deps = [
  492. ":audio_processing",
  493. ":audioproc_test_utils",
  494. "../../api:array_view",
  495. "../../rtc_base:protobuf_utils",
  496. "../../rtc_base:rtc_base_approved",
  497. "../../system_wrappers",
  498. "../../test:perf_test",
  499. "../../test:test_support",
  500. ]
  501. }
  502. rtc_library("file_audio_generator_unittests") {
  503. testonly = true
  504. sources = [
  505. "audio_generator/file_audio_generator_unittest.cc",
  506. ]
  507. deps = [
  508. ":api",
  509. ":audio_generator_factory",
  510. ":audio_processing",
  511. ":file_audio_generator",
  512. "../../rtc_base:rtc_base_approved",
  513. "../../test:fileutils",
  514. "../../test:test_support",
  515. ]
  516. }
  517. rtc_library("analog_mic_simulation") {
  518. sources = [
  519. "test/fake_recording_device.cc",
  520. "test/fake_recording_device.h",
  521. ]
  522. deps = [
  523. "../../api:array_view",
  524. "../../api/audio:audio_frame_api",
  525. "../../common_audio",
  526. "../../rtc_base:checks",
  527. "../../rtc_base:rtc_base_approved",
  528. "../../rtc_base:safe_minmax",
  529. "agc:gain_map",
  530. "//third_party/abseil-cpp/absl/types:optional",
  531. ]
  532. }
  533. if (rtc_enable_protobuf) {
  534. rtc_library("audioproc_f_impl") {
  535. testonly = true
  536. configs += [ ":apm_debug_dump" ]
  537. sources = [
  538. "test/aec_dump_based_simulator.cc",
  539. "test/aec_dump_based_simulator.h",
  540. "test/api_call_statistics.cc",
  541. "test/api_call_statistics.h",
  542. "test/audio_processing_simulator.cc",
  543. "test/audio_processing_simulator.h",
  544. "test/audioproc_float_impl.cc",
  545. "test/audioproc_float_impl.h",
  546. "test/wav_based_simulator.cc",
  547. "test/wav_based_simulator.h",
  548. ]
  549. deps = [
  550. ":analog_mic_simulation",
  551. ":api",
  552. ":apm_logging",
  553. ":audio_processing",
  554. ":audioproc_debug_proto",
  555. ":audioproc_protobuf_utils",
  556. ":audioproc_test_utils",
  557. ":runtime_settings_protobuf_utils",
  558. "../../api/audio:aec3_config_json",
  559. "../../api/audio:aec3_factory",
  560. "../../common_audio",
  561. "../../rtc_base:checks",
  562. "../../rtc_base:ignore_wundef",
  563. "../../rtc_base:protobuf_utils",
  564. "../../rtc_base:rtc_base_approved",
  565. "../../rtc_base:rtc_json",
  566. "../../rtc_base:task_queue_for_test",
  567. "../../system_wrappers",
  568. "../../test:test_support",
  569. "aec_dump",
  570. "aec_dump:aec_dump_impl",
  571. "//testing/gtest",
  572. "//third_party/abseil-cpp/absl/flags:flag",
  573. "//third_party/abseil-cpp/absl/flags:parse",
  574. "//third_party/abseil-cpp/absl/strings",
  575. "//third_party/abseil-cpp/absl/types:optional",
  576. ]
  577. } # audioproc_f_impl
  578. rtc_executable("audioproc_f") {
  579. testonly = true
  580. sources = [
  581. "test/audioproc_float_main.cc",
  582. ]
  583. deps = [
  584. ":api",
  585. ":audio_processing",
  586. "../../api:audioproc_f_api",
  587. "../../rtc_base:rtc_base_approved",
  588. ]
  589. } # audioproc_f
  590. }
  591. rtc_library("audioproc_test_utils") {
  592. visibility = [ "*" ]
  593. testonly = true
  594. sources = [
  595. "test/audio_buffer_tools.cc",
  596. "test/audio_buffer_tools.h",
  597. "test/bitexactness_tools.cc",
  598. "test/bitexactness_tools.h",
  599. "test/performance_timer.cc",
  600. "test/performance_timer.h",
  601. "test/simulator_buffers.cc",
  602. "test/simulator_buffers.h",
  603. "test/test_utils.cc",
  604. "test/test_utils.h",
  605. ]
  606. deps = [
  607. ":api",
  608. ":audio_buffer",
  609. ":audio_processing",
  610. "../../api:array_view",
  611. "../../api/audio:audio_frame_api",
  612. "../../common_audio",
  613. "../../rtc_base:checks",
  614. "../../rtc_base:rtc_base_approved",
  615. "../../rtc_base/system:arch",
  616. "../../system_wrappers",
  617. "../../test:fileutils",
  618. "../../test:test_support",
  619. "../audio_coding:neteq_input_audio_tools",
  620. "//testing/gtest",
  621. "//third_party/abseil-cpp/absl/types:optional",
  622. ]
  623. }
  624. rtc_executable("transient_suppression_test") {
  625. testonly = true
  626. sources = [
  627. "transient/file_utils.cc",
  628. "transient/file_utils.h",
  629. "transient/transient_suppression_test.cc",
  630. ]
  631. deps = [
  632. ":audio_processing",
  633. "../../common_audio",
  634. "../../rtc_base:rtc_base_approved",
  635. "../../rtc_base/system:file_wrapper",
  636. "../../system_wrappers",
  637. "../../test:fileutils",
  638. "../../test:test_support",
  639. "agc:level_estimation",
  640. "//testing/gtest",
  641. "//third_party/abseil-cpp/absl/flags:flag",
  642. "//third_party/abseil-cpp/absl/flags:parse",
  643. ]
  644. }
  645. rtc_executable("click_annotate") {
  646. testonly = true
  647. sources = [
  648. "transient/click_annotate.cc",
  649. "transient/file_utils.cc",
  650. "transient/file_utils.h",
  651. ]
  652. deps = [
  653. ":audio_processing",
  654. "../../rtc_base/system:file_wrapper",
  655. "../../system_wrappers",
  656. ]
  657. }
  658. if (rtc_enable_protobuf) {
  659. proto_library("audioproc_unittest_proto") {
  660. sources = [
  661. "test/unittest.proto",
  662. ]
  663. proto_out_dir = "modules/audio_processing/test"
  664. }
  665. rtc_library("audioproc_protobuf_utils") {
  666. sources = [
  667. "test/protobuf_utils.cc",
  668. "test/protobuf_utils.h",
  669. ]
  670. deps = [
  671. ":audioproc_debug_proto",
  672. "../../rtc_base:checks",
  673. "../../rtc_base:ignore_wundef",
  674. "../../rtc_base:protobuf_utils",
  675. "../../rtc_base:rtc_base_approved",
  676. "../../rtc_base/system:arch",
  677. ]
  678. }
  679. rtc_library("runtime_settings_protobuf_utils") {
  680. testonly = true
  681. sources = [
  682. "test/runtime_setting_util.cc",
  683. "test/runtime_setting_util.h",
  684. ]
  685. deps = [
  686. ":api",
  687. ":audio_processing",
  688. ":audioproc_debug_proto",
  689. ":audioproc_protobuf_utils",
  690. "../../rtc_base:checks",
  691. ]
  692. }
  693. }
  694. }