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.
|
|
|
|
|
|
2017-01-24 06:58:22 -08:00
|
|
|
import("../../webrtc.gni")
|
2019-02-26 11:46:17 +02:00
|
|
|
if (rtc_enable_protobuf) {
|
2018-01-15 10:20:00 -05:00
|
|
|
import("//third_party/protobuf/proto_library.gni")
|
|
|
|
|
}
|
2014-06-23 19:21:07 +00:00
|
|
|
|
2017-12-19 09:45:24 +01:00
|
|
|
config("apm_debug_dump") {
|
|
|
|
|
if (apm_debug_dump) {
|
|
|
|
|
defines = [ "WEBRTC_APM_DEBUG_DUMP=1" ]
|
|
|
|
|
} else {
|
|
|
|
|
defines = [ "WEBRTC_APM_DEBUG_DUMP=0" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("config") {
|
2018-11-06 14:24:51 +01:00
|
|
|
visibility = [ ":*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"include/config.cc",
|
|
|
|
|
"include/config.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../rtc_base:macromagic",
|
|
|
|
|
"../../rtc_base/system:rtc_export",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("api") {
|
2018-11-06 14:24:51 +01:00
|
|
|
visibility = [ "*" ]
|
2018-11-07 14:29:54 +00:00
|
|
|
sources = [
|
|
|
|
|
"include/audio_processing.cc",
|
|
|
|
|
"include/audio_processing.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":audio_frame_view",
|
|
|
|
|
":audio_generator_interface",
|
|
|
|
|
":audio_processing_statistics",
|
|
|
|
|
":config",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../../api:scoped_refptr",
|
2018-11-07 14:29:54 +00:00
|
|
|
"../../api/audio:aec3_config",
|
2020-03-17 13:23:58 +01:00
|
|
|
"../../api/audio:audio_frame_api",
|
2018-11-07 14:29:54 +00:00
|
|
|
"../../api/audio:echo_control",
|
|
|
|
|
"../../rtc_base:deprecation",
|
|
|
|
|
"../../rtc_base:macromagic",
|
|
|
|
|
"../../rtc_base:rtc_base_approved",
|
2019-09-15 00:27:58 +02:00
|
|
|
"../../rtc_base/system:arch",
|
2018-11-07 14:29:54 +00:00
|
|
|
"../../rtc_base/system:rtc_export",
|
2019-10-15 10:10:26 +02:00
|
|
|
"agc:gain_control_interface",
|
2018-11-07 14:29:54 +00:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
|
|
|
]
|
2018-11-06 14:24:51 +01:00
|
|
|
}
|
|
|
|
|
|
2020-03-17 13:23:58 +01:00
|
|
|
rtc_library("audio_frame_proxies") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"include/audio_frame_proxies.cc",
|
|
|
|
|
"include/audio_frame_proxies.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":api",
|
|
|
|
|
":audio_frame_view",
|
|
|
|
|
"../../api/audio:audio_frame_api",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("audio_buffer") {
|
2019-03-05 08:40:48 +01:00
|
|
|
visibility = [ "*" ]
|
2019-03-06 04:16:46 +01:00
|
|
|
|
|
|
|
|
configs += [ ":apm_debug_dump" ]
|
|
|
|
|
|
2019-03-05 08:40:48 +01:00
|
|
|
sources = [
|
2019-03-06 04:16:46 +01:00
|
|
|
"audio_buffer.cc",
|
|
|
|
|
"audio_buffer.h",
|
|
|
|
|
"splitting_filter.cc",
|
|
|
|
|
"splitting_filter.h",
|
|
|
|
|
"three_band_filter_bank.cc",
|
|
|
|
|
"three_band_filter_bank.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
defines = []
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":api",
|
2020-02-21 13:31:07 +01:00
|
|
|
"../../api:array_view",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../../common_audio",
|
2019-03-06 04:16:46 +01:00
|
|
|
"../../common_audio:common_audio_c",
|
|
|
|
|
"../../rtc_base:checks",
|
2019-03-05 08:40:48 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("high_pass_filter") {
|
2019-08-23 21:29:17 +02:00
|
|
|
visibility = [ "*" ]
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"high_pass_filter.cc",
|
|
|
|
|
"high_pass_filter.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
defines = []
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":audio_buffer",
|
|
|
|
|
"../../api:array_view",
|
|
|
|
|
"../../rtc_base:checks",
|
|
|
|
|
"utility:cascaded_biquad_filter",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("audio_processing") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
2017-12-19 09:45:24 +01:00
|
|
|
configs += [ ":apm_debug_dump" ]
|
2014-08-31 20:32:53 +00:00
|
|
|
sources = [
|
|
|
|
|
"audio_processing_impl.cc",
|
|
|
|
|
"audio_processing_impl.h",
|
|
|
|
|
"common.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",
|
2014-08-31 20:32:53 +00:00
|
|
|
"gain_control_impl.cc",
|
|
|
|
|
"gain_control_impl.h",
|
2018-02-16 11:54:07 +01:00
|
|
|
"gain_controller2.cc",
|
|
|
|
|
"gain_controller2.h",
|
2018-05-15 13:13:22 +02:00
|
|
|
"include/aec_dump.cc",
|
|
|
|
|
"include/aec_dump.h",
|
2019-10-11 19:31:07 +02:00
|
|
|
"level_estimator.cc",
|
|
|
|
|
"level_estimator.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
|
|
|
"typing_detection.cc",
|
|
|
|
|
"typing_detection.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
defines = []
|
2015-05-25 12:55:39 +02:00
|
|
|
deps = [
|
2018-11-06 14:24:51 +01:00
|
|
|
":api",
|
2017-12-11 10:28:16 +01:00
|
|
|
":apm_logging",
|
2019-03-05 08:40:48 +01:00
|
|
|
":audio_buffer",
|
2020-03-17 13:23:58 +01:00
|
|
|
":audio_frame_proxies",
|
2018-02-16 11:54:07 +01:00
|
|
|
":audio_frame_view",
|
2018-03-02 16:03:21 +01:00
|
|
|
":audio_generator_interface",
|
2017-11-24 17:29:59 +01:00
|
|
|
":audio_processing_statistics",
|
2018-11-06 14:24:51 +01:00
|
|
|
":config",
|
2019-08-23 21:29:17 +02:00
|
|
|
":high_pass_filter",
|
2020-03-20 11:30:32 +01:00
|
|
|
":rms_level",
|
2020-03-12 12:45:21 +01:00
|
|
|
":voice_detection",
|
2017-09-04 05:43:17 -07:00
|
|
|
"../../api:array_view",
|
2019-03-21 14:37:36 +01:00
|
|
|
"../../api:function_view",
|
2018-02-16 13:43:49 +01:00
|
|
|
"../../api/audio:aec3_config",
|
2018-04-12 22:44:09 +02:00
|
|
|
"../../api/audio:audio_frame_api",
|
2018-02-16 13:43:49 +01:00
|
|
|
"../../api/audio:echo_control",
|
2016-12-05 01:46:09 -08:00
|
|
|
"../../audio/utility:audio_frame_operations",
|
2018-02-05 15:50:41 +01:00
|
|
|
"../../common_audio:common_audio_c",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../../common_audio/third_party/fft4g",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../../rtc_base:checks",
|
2017-12-15 14:40:10 +01:00
|
|
|
"../../rtc_base:deprecation",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:gtest_prod",
|
2019-10-19 12:03:23 +02:00
|
|
|
"../../rtc_base:ignore_wundef",
|
2018-03-07 14:18:56 +01:00
|
|
|
"../../rtc_base:safe_minmax",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../../rtc_base:sanitizer",
|
Reland "Export symbols needed by the Chromium component build (part 1)."
This reverts commit 16fe3f290a524a136f71660a114d0b03ef501f10.
Reason for revert:
After discussing this problem with nisse@ and yvesg@, we decided to modify
how RTC_EXPORT works and avoid to depend on the macro COMPONENT_BUILD.
RTC_EXPORT will instead depend on a macro WEBRTC_COMPONENT_BUILD (which
can be set as a GN argument which defaults to false).
When all the symbols needed by Chromium will be marked with RTC_EXPORT we
will flip the GN arg in Chromium, setting to to `component_build` and from
that moment, Chromium will depend on a WebRTC shared library when
`component_build=true`.
Original change's description:
> Revert "Export symbols needed by the Chromium component build (part 1)."
>
> This reverts commit 99eea42fc1fe0be0ebed13c5eba7e1e42059bc5a.
>
> Reason for revert:
> lld-link: error: undefined symbol: "__declspec(dllimport) bool __cdecl cricket::UnwrapTurnPacket(unsigned char const *, unsigned int, unsigned int *, unsigned int *)" (__imp_?UnwrapTurnPacket@cricket@@YA_NPBEIPAI1@Z)
> >>> referenced by obj/services/network/network_service/socket_manager.obj:("virtual void __thiscall network::P2PSocketManager::DumpPacket(class base::span<unsigned char const, 4294967295>, bool)" (?DumpPacket@P2PSocketManager@network@@EAEXV?$span@$$CBE$0PPPPPPPP@@base@@_N@Z))
> lld-link: error: undefined symbol: "__declspec(dllimport) bool __cdecl cricket::ValidateRtpHeader(unsigned char const *, unsigned int, unsigned int *)" (__imp_?ValidateRtpHeader@cricket@@YA_NPBEIPAI@Z)
> >>> referenced by obj/services/network/network_service/socket_manager.obj:("virtual void __thiscall network::P2PSocketManager::DumpPacket(class base::span<unsigned char const, 4294967295>, bool)" (?DumpPacket@P2PSocketManager@network@@EAEXV?$span@$$CBE$0PPPPPPPP@@base@@_N@Z))
> lld-link: error: undefined symbol: "__declspec(dllimport) bool __cdecl cricket::ApplyPacketOptions(unsigned char *, unsigned int, struct rtc::PacketTimeUpdateParams const &, unsigned __int64)" (__imp_?ApplyPacketOptions@cricket@@YA_NPAEIABUPacketTimeUpdateParams@rtc@@_K@Z)
> >>> referenced by obj/services/network/network_service/socket_tcp.obj:("virtual void __thiscall network::P2PSocketTcp::DoSend(class net::IPEndPoint const &, class std::vector<signed char, class std::allocator<signed char>> const &, struct rtc::PacketOptions const &, struct net::NetworkTrafficAnnotationTag)" (?DoSend@P2PSocketTcp@network@@MAEXABVIPEndPoint@net@@ABV?$vector@CV?$allocator@C@std@@@std@@ABUPacketOptions@rtc@@UNetworkTrafficAnnotationTag@4@@Z))
> >>> referenced by obj/services/network/network_service/socket_tcp.obj:("virtual void __thiscall network::P2PSocketStunTcp::DoSend(class net::IPEndPoint const &, class std::vector<signed char, class std::allocator<signed char>> const &, struct rtc::PacketOptions const &, struct net::NetworkTrafficAnnotationTag)" (?DoSend@P2PSocketStunTcp@network@@MAEXABVIPEndPoint@net@@ABV?$vector@CV?$allocator@C@std@@@std@@ABUPacketOptions@rtc@@UNetworkTrafficAnnotationTag@4@@Z))
> lld-link: error: undefined symbol: "__declspec(dllimport) bool __cdecl cricket::ApplyPacketOptions(unsigned char *, unsigned int, struct rtc::PacketTimeUpdateParams const &, unsigned __int64)" (__imp_?ApplyPacketOptions@cricket@@YA_NPAEIABUPacketTimeUpdateParams@rtc@@_K@Z)
> >>> referenced by obj/services/network/network_service/socket_udp.obj:("bool __thiscall network::P2PSocketUdp::DoSend(struct network::P2PSocketUdp::PendingPacket const &)" (?DoSend@P2PSocketUdp@network@@AAE_NABUPendingPacket@12@@Z))
>
> Original change's description:
> > Reland "Reland "Export symbols needed by the Chromium component build (part 1).""
> >
> > This reverts commit b49520bfc08f5c5832dda1d642125f0bb898f974.
> >
> > Reason for revert: Problem fixed in https://chromium-review.googlesource.com/c/chromium/src/+/1261398.
> >
> > Original change's description:
> > > Revert "Reland "Export symbols needed by the Chromium component build (part 1).""
> > >
> > > This reverts commit 588f4642d1a29f7beaf28265dbd08728191b4c52.
> > >
> > > Reason for revert: Breaks WebRTC Chromium FYI Win Builder (dbg).
> > > lld-link: error: undefined symbol: "__declspec(dllimport) __thiscall webrtc::Config::Config(void)" (__imp_??0Config@webrtc@@QAE@XZ)
> > > [...]
> > >
> > > Original change's description:
> > > > Reland "Export symbols needed by the Chromium component build (part 1)."
> > > >
> > > > This reverts commit 2ea9af227517556136fd629dd2663c0d75d77c7b.
> > > >
> > > > Reason for revert: The problem will be fixed by
> > > > https://chromium-review.googlesource.com/c/chromium/src/+/1261122.
> > > >
> > > > Original change's description:
> > > > > Revert "Export symbols needed by the Chromium component build (part 1)."
> > > > >
> > > > > This reverts commit 9e24dcff167c4eb3555bf0ce6eaba090c10fbe53.
> > > > >
> > > > > Reason for revert: Breaks chromium.webrtc.fyi bots.
> > > > >
> > > > > Original change's description:
> > > > > > Export symbols needed by the Chromium component build (part 1).
> > > > > >
> > > > > > This CL uses RTC_EXPORT (defined in rtc_base/system/rtc_export.h)
> > > > > > to mark WebRTC symbols as visible from a shared library, this doesn't
> > > > > > mean these symbols are part of the public API (please continue to refer
> > > > > > to [1] for info about what is considered public WebRTC API).
> > > > > >
> > > > > > [1] - https://webrtc.googlesource.com/src/+/HEAD/native-api.md
> > > > > >
> > > > > > Bug: webrtc:9419
> > > > > > Change-Id: I802abd32874d42d3aa5ecd3c8022e7cf5e043d99
> > > > > > Reviewed-on: https://webrtc-review.googlesource.com/c/103505
> > > > > > Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
> > > > > > Reviewed-by: Niels Moller <nisse@webrtc.org>
> > > > > > Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
> > > > > > Cr-Commit-Position: refs/heads/master@{#24969}
> > > > >
> > > > > TBR=mbonadei@webrtc.org,kwiberg@webrtc.org,nisse@webrtc.org
> > > > >
> > > > > Change-Id: I01f6e18f0d2c0f0309cdaa6c943c3927e1f1f49f
> > > > > No-Presubmit: true
> > > > > No-Tree-Checks: true
> > > > > No-Try: true
> > > > > Bug: webrtc:9419
> > > > > Reviewed-on: https://webrtc-review.googlesource.com/c/103720
> > > > > Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
> > > > > Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
> > > > > Cr-Commit-Position: refs/heads/master@{#24974}
> > > >
> > > > TBR=mbonadei@webrtc.org,kwiberg@webrtc.org,nisse@webrtc.org
> > > >
> > > > Change-Id: I83bbc7f550fc23e823c4d055e0a6f60c828960dd
> > > > No-Presubmit: true
> > > > No-Tree-Checks: true
> > > > No-Try: true
> > > > Bug: webrtc:9419
> > > > Reviewed-on: https://webrtc-review.googlesource.com/c/103740
> > > > Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
> > > > Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
> > > > Cr-Commit-Position: refs/heads/master@{#24980}
> > >
> > > TBR=mbonadei@webrtc.org,kwiberg@webrtc.org,nisse@webrtc.org
> > >
> > > Change-Id: I4b7cfe492f2c8eeda5c8ac52520e0cfc95ade9b0
> > > No-Presubmit: true
> > > No-Tree-Checks: true
> > > No-Try: true
> > > Bug: webrtc:9419
> > > Reviewed-on: https://webrtc-review.googlesource.com/c/103801
> > > Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
> > > Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
> > > Cr-Commit-Position: refs/heads/master@{#24983}
> >
> > TBR=mbonadei@webrtc.org,kwiberg@webrtc.org,nisse@webrtc.org
> >
> > # Not skipping CQ checks because original CL landed > 1 day ago.
> >
> > Bug: webrtc:9419
> > Change-Id: Id986a0a03cdc2818690337784396882af067f7fa
> > Reviewed-on: https://webrtc-review.googlesource.com/c/104602
> > Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
> > Reviewed-by: Niels Moller <nisse@webrtc.org>
> > Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
> > Cr-Commit-Position: refs/heads/master@{#25049}
>
> TBR=mbonadei@webrtc.org,kwiberg@webrtc.org,nisse@webrtc.org
>
> Change-Id: I6f58b9c90defccdb160307783fb55271ab424fa1
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: webrtc:9419
> Reviewed-on: https://webrtc-review.googlesource.com/c/104623
> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
> Cr-Commit-Position: refs/heads/master@{#25050}
TBR=mbonadei@webrtc.org,kwiberg@webrtc.org,nisse@webrtc.org
Change-Id: I4d01ed96ae40a8f9ca42c466be5c87653d75d7c1
Bug: webrtc:9419
Reviewed-on: https://webrtc-review.googlesource.com/c/104641
Reviewed-by: Yves Gerey <yvesg@webrtc.org>
Reviewed-by: Niels Moller <nisse@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25108}
2018-10-11 10:50:45 +02:00
|
|
|
"../../rtc_base/system:rtc_export",
|
2017-12-06 09:17:14 +01:00
|
|
|
"../../system_wrappers:cpu_features_api",
|
2018-09-28 08:51:10 +02:00
|
|
|
"../../system_wrappers:field_trial",
|
|
|
|
|
"../../system_wrappers:metrics",
|
2019-03-21 13:35:10 +01:00
|
|
|
"aec3",
|
2018-07-09 14:28:15 +02:00
|
|
|
"aecm:aecm_core",
|
2018-07-06 14:54:30 +02:00
|
|
|
"agc",
|
2019-10-15 10:10:26 +02:00
|
|
|
"agc:gain_control_interface",
|
2020-03-20 15:50:14 +01:00
|
|
|
"agc:legacy_agc",
|
2018-03-27 13:38:36 +02:00
|
|
|
"agc2:adaptive_digital",
|
|
|
|
|
"agc2:fixed_digital",
|
2018-04-16 16:31:22 +02:00
|
|
|
"agc2:gain_applier",
|
2019-10-29 22:59:44 +01:00
|
|
|
"ns",
|
2020-03-12 12:45:21 +01:00
|
|
|
"transient:transient_suppressor",
|
2018-02-05 11:15:23 +01:00
|
|
|
"vad",
|
2018-06-19 10:50:11 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2015-05-25 12:55:39 +02:00
|
|
|
]
|
2014-08-31 20:32:53 +00:00
|
|
|
|
|
|
|
|
deps += [
|
|
|
|
|
"../../common_audio",
|
2017-11-17 11:04:15 +01:00
|
|
|
"../../common_audio:fir_filter",
|
|
|
|
|
"../../common_audio:fir_filter_factory",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2014-08-31 20:32:53 +00:00
|
|
|
"../../system_wrappers",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-12 12:45:21 +01:00
|
|
|
rtc_library("voice_detection") {
|
|
|
|
|
sources = [
|
|
|
|
|
"voice_detection.cc",
|
|
|
|
|
"voice_detection.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":api",
|
|
|
|
|
":audio_buffer",
|
|
|
|
|
"../../api/audio:audio_frame_api",
|
|
|
|
|
"../../common_audio:common_audio_c",
|
|
|
|
|
"../../rtc_base:checks",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-20 11:30:32 +01:00
|
|
|
rtc_source_set("rms_level") {
|
|
|
|
|
visibility = [ "*" ]
|
2020-03-20 15:55:29 +01:00
|
|
|
sources = [
|
|
|
|
|
"rms_level.cc",
|
|
|
|
|
"rms_level.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../api:array_view",
|
|
|
|
|
"../../rtc_base:checks",
|
|
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
|
|
|
]
|
2020-03-20 11:30:32 +01:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("audio_processing_statistics") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
2017-11-24 17:29:59 +01:00
|
|
|
sources = [
|
|
|
|
|
"include/audio_processing_statistics.cc",
|
|
|
|
|
"include/audio_processing_statistics.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
Reland "Export symbols needed by the Chromium component build (part 1)."
This reverts commit 16fe3f290a524a136f71660a114d0b03ef501f10.
Reason for revert:
After discussing this problem with nisse@ and yvesg@, we decided to modify
how RTC_EXPORT works and avoid to depend on the macro COMPONENT_BUILD.
RTC_EXPORT will instead depend on a macro WEBRTC_COMPONENT_BUILD (which
can be set as a GN argument which defaults to false).
When all the symbols needed by Chromium will be marked with RTC_EXPORT we
will flip the GN arg in Chromium, setting to to `component_build` and from
that moment, Chromium will depend on a WebRTC shared library when
`component_build=true`.
Original change's description:
> Revert "Export symbols needed by the Chromium component build (part 1)."
>
> This reverts commit 99eea42fc1fe0be0ebed13c5eba7e1e42059bc5a.
>
> Reason for revert:
> lld-link: error: undefined symbol: "__declspec(dllimport) bool __cdecl cricket::UnwrapTurnPacket(unsigned char const *, unsigned int, unsigned int *, unsigned int *)" (__imp_?UnwrapTurnPacket@cricket@@YA_NPBEIPAI1@Z)
> >>> referenced by obj/services/network/network_service/socket_manager.obj:("virtual void __thiscall network::P2PSocketManager::DumpPacket(class base::span<unsigned char const, 4294967295>, bool)" (?DumpPacket@P2PSocketManager@network@@EAEXV?$span@$$CBE$0PPPPPPPP@@base@@_N@Z))
> lld-link: error: undefined symbol: "__declspec(dllimport) bool __cdecl cricket::ValidateRtpHeader(unsigned char const *, unsigned int, unsigned int *)" (__imp_?ValidateRtpHeader@cricket@@YA_NPBEIPAI@Z)
> >>> referenced by obj/services/network/network_service/socket_manager.obj:("virtual void __thiscall network::P2PSocketManager::DumpPacket(class base::span<unsigned char const, 4294967295>, bool)" (?DumpPacket@P2PSocketManager@network@@EAEXV?$span@$$CBE$0PPPPPPPP@@base@@_N@Z))
> lld-link: error: undefined symbol: "__declspec(dllimport) bool __cdecl cricket::ApplyPacketOptions(unsigned char *, unsigned int, struct rtc::PacketTimeUpdateParams const &, unsigned __int64)" (__imp_?ApplyPacketOptions@cricket@@YA_NPAEIABUPacketTimeUpdateParams@rtc@@_K@Z)
> >>> referenced by obj/services/network/network_service/socket_tcp.obj:("virtual void __thiscall network::P2PSocketTcp::DoSend(class net::IPEndPoint const &, class std::vector<signed char, class std::allocator<signed char>> const &, struct rtc::PacketOptions const &, struct net::NetworkTrafficAnnotationTag)" (?DoSend@P2PSocketTcp@network@@MAEXABVIPEndPoint@net@@ABV?$vector@CV?$allocator@C@std@@@std@@ABUPacketOptions@rtc@@UNetworkTrafficAnnotationTag@4@@Z))
> >>> referenced by obj/services/network/network_service/socket_tcp.obj:("virtual void __thiscall network::P2PSocketStunTcp::DoSend(class net::IPEndPoint const &, class std::vector<signed char, class std::allocator<signed char>> const &, struct rtc::PacketOptions const &, struct net::NetworkTrafficAnnotationTag)" (?DoSend@P2PSocketStunTcp@network@@MAEXABVIPEndPoint@net@@ABV?$vector@CV?$allocator@C@std@@@std@@ABUPacketOptions@rtc@@UNetworkTrafficAnnotationTag@4@@Z))
> lld-link: error: undefined symbol: "__declspec(dllimport) bool __cdecl cricket::ApplyPacketOptions(unsigned char *, unsigned int, struct rtc::PacketTimeUpdateParams const &, unsigned __int64)" (__imp_?ApplyPacketOptions@cricket@@YA_NPAEIABUPacketTimeUpdateParams@rtc@@_K@Z)
> >>> referenced by obj/services/network/network_service/socket_udp.obj:("bool __thiscall network::P2PSocketUdp::DoSend(struct network::P2PSocketUdp::PendingPacket const &)" (?DoSend@P2PSocketUdp@network@@AAE_NABUPendingPacket@12@@Z))
>
> Original change's description:
> > Reland "Reland "Export symbols needed by the Chromium component build (part 1).""
> >
> > This reverts commit b49520bfc08f5c5832dda1d642125f0bb898f974.
> >
> > Reason for revert: Problem fixed in https://chromium-review.googlesource.com/c/chromium/src/+/1261398.
> >
> > Original change's description:
> > > Revert "Reland "Export symbols needed by the Chromium component build (part 1).""
> > >
> > > This reverts commit 588f4642d1a29f7beaf28265dbd08728191b4c52.
> > >
> > > Reason for revert: Breaks WebRTC Chromium FYI Win Builder (dbg).
> > > lld-link: error: undefined symbol: "__declspec(dllimport) __thiscall webrtc::Config::Config(void)" (__imp_??0Config@webrtc@@QAE@XZ)
> > > [...]
> > >
> > > Original change's description:
> > > > Reland "Export symbols needed by the Chromium component build (part 1)."
> > > >
> > > > This reverts commit 2ea9af227517556136fd629dd2663c0d75d77c7b.
> > > >
> > > > Reason for revert: The problem will be fixed by
> > > > https://chromium-review.googlesource.com/c/chromium/src/+/1261122.
> > > >
> > > > Original change's description:
> > > > > Revert "Export symbols needed by the Chromium component build (part 1)."
> > > > >
> > > > > This reverts commit 9e24dcff167c4eb3555bf0ce6eaba090c10fbe53.
> > > > >
> > > > > Reason for revert: Breaks chromium.webrtc.fyi bots.
> > > > >
> > > > > Original change's description:
> > > > > > Export symbols needed by the Chromium component build (part 1).
> > > > > >
> > > > > > This CL uses RTC_EXPORT (defined in rtc_base/system/rtc_export.h)
> > > > > > to mark WebRTC symbols as visible from a shared library, this doesn't
> > > > > > mean these symbols are part of the public API (please continue to refer
> > > > > > to [1] for info about what is considered public WebRTC API).
> > > > > >
> > > > > > [1] - https://webrtc.googlesource.com/src/+/HEAD/native-api.md
> > > > > >
> > > > > > Bug: webrtc:9419
> > > > > > Change-Id: I802abd32874d42d3aa5ecd3c8022e7cf5e043d99
> > > > > > Reviewed-on: https://webrtc-review.googlesource.com/c/103505
> > > > > > Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
> > > > > > Reviewed-by: Niels Moller <nisse@webrtc.org>
> > > > > > Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
> > > > > > Cr-Commit-Position: refs/heads/master@{#24969}
> > > > >
> > > > > TBR=mbonadei@webrtc.org,kwiberg@webrtc.org,nisse@webrtc.org
> > > > >
> > > > > Change-Id: I01f6e18f0d2c0f0309cdaa6c943c3927e1f1f49f
> > > > > No-Presubmit: true
> > > > > No-Tree-Checks: true
> > > > > No-Try: true
> > > > > Bug: webrtc:9419
> > > > > Reviewed-on: https://webrtc-review.googlesource.com/c/103720
> > > > > Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
> > > > > Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
> > > > > Cr-Commit-Position: refs/heads/master@{#24974}
> > > >
> > > > TBR=mbonadei@webrtc.org,kwiberg@webrtc.org,nisse@webrtc.org
> > > >
> > > > Change-Id: I83bbc7f550fc23e823c4d055e0a6f60c828960dd
> > > > No-Presubmit: true
> > > > No-Tree-Checks: true
> > > > No-Try: true
> > > > Bug: webrtc:9419
> > > > Reviewed-on: https://webrtc-review.googlesource.com/c/103740
> > > > Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
> > > > Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
> > > > Cr-Commit-Position: refs/heads/master@{#24980}
> > >
> > > TBR=mbonadei@webrtc.org,kwiberg@webrtc.org,nisse@webrtc.org
> > >
> > > Change-Id: I4b7cfe492f2c8eeda5c8ac52520e0cfc95ade9b0
> > > No-Presubmit: true
> > > No-Tree-Checks: true
> > > No-Try: true
> > > Bug: webrtc:9419
> > > Reviewed-on: https://webrtc-review.googlesource.com/c/103801
> > > Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
> > > Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
> > > Cr-Commit-Position: refs/heads/master@{#24983}
> >
> > TBR=mbonadei@webrtc.org,kwiberg@webrtc.org,nisse@webrtc.org
> >
> > # Not skipping CQ checks because original CL landed > 1 day ago.
> >
> > Bug: webrtc:9419
> > Change-Id: Id986a0a03cdc2818690337784396882af067f7fa
> > Reviewed-on: https://webrtc-review.googlesource.com/c/104602
> > Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
> > Reviewed-by: Niels Moller <nisse@webrtc.org>
> > Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
> > Cr-Commit-Position: refs/heads/master@{#25049}
>
> TBR=mbonadei@webrtc.org,kwiberg@webrtc.org,nisse@webrtc.org
>
> Change-Id: I6f58b9c90defccdb160307783fb55271ab424fa1
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: webrtc:9419
> Reviewed-on: https://webrtc-review.googlesource.com/c/104623
> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
> Cr-Commit-Position: refs/heads/master@{#25050}
TBR=mbonadei@webrtc.org,kwiberg@webrtc.org,nisse@webrtc.org
Change-Id: I4d01ed96ae40a8f9ca42c466be5c87653d75d7c1
Bug: webrtc:9419
Reviewed-on: https://webrtc-review.googlesource.com/c/104641
Reviewed-by: Yves Gerey <yvesg@webrtc.org>
Reviewed-by: Niels Moller <nisse@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25108}
2018-10-11 10:50:45 +02:00
|
|
|
"../../rtc_base/system:rtc_export",
|
2018-06-19 10:50:11 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2017-11-24 17:29:59 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-02-16 11:54:07 +01:00
|
|
|
rtc_source_set("audio_frame_view") {
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "include/audio_frame_view.h" ]
|
|
|
|
|
deps = [ "../../api:array_view" ]
|
2018-02-16 11:54:07 +01:00
|
|
|
}
|
|
|
|
|
|
2018-03-02 16:03:21 +01:00
|
|
|
rtc_source_set("audio_generator_interface") {
|
|
|
|
|
visibility = [ "*" ]
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "include/audio_generator.h" ]
|
2018-03-02 16:03:21 +01:00
|
|
|
deps = [
|
|
|
|
|
":audio_frame_view",
|
|
|
|
|
"../../rtc_base:rtc_base_approved",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../../system_wrappers",
|
2018-03-02 16:03:21 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("audio_generator_factory") {
|
2018-03-02 16:03:21 +01:00
|
|
|
visibility = [ "*" ]
|
2019-07-30 11:55:36 +02:00
|
|
|
testonly = true
|
2018-03-02 16:03:21 +01:00
|
|
|
sources = [
|
|
|
|
|
"include/audio_generator_factory.cc",
|
|
|
|
|
"include/audio_generator_factory.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":audio_generator_interface",
|
|
|
|
|
":file_audio_generator",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../../common_audio",
|
2018-03-02 16:03:21 +01:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../../system_wrappers",
|
2018-03-02 16:03:21 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("file_audio_generator") {
|
2018-03-02 16:03:21 +01:00
|
|
|
sources = [
|
|
|
|
|
"audio_generator/file_audio_generator.cc",
|
|
|
|
|
"audio_generator/file_audio_generator.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":audio_generator_interface",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../../common_audio",
|
2018-03-02 16:03:21 +01:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../../system_wrappers",
|
2018-03-02 16:03:21 +01: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") {
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "debug.proto" ]
|
2014-08-31 20:32:53 +00:00
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
proto_out_dir = "modules/audio_processing"
|
2014-08-31 20:32:53 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("apm_logging") {
|
2017-12-19 09:45:24 +01:00
|
|
|
configs += [ ":apm_debug_dump" ]
|
2017-12-11 10:28:16 +01:00
|
|
|
sources = [
|
|
|
|
|
"logging/apm_data_dumper.cc",
|
|
|
|
|
"logging/apm_data_dumper.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../api:array_view",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../../common_audio",
|
2018-11-20 12:44:15 +01:00
|
|
|
"../../rtc_base:checks",
|
2017-12-11 10:28:16 +01:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
|
|
|
|
]
|
|
|
|
|
defines = []
|
|
|
|
|
}
|
2017-12-04 10:11:11 +00:00
|
|
|
|
2016-06-13 00:19:48 -07:00
|
|
|
if (rtc_include_tests) {
|
2017-12-19 16:44:45 +01:00
|
|
|
rtc_source_set("mocks") {
|
|
|
|
|
testonly = true
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "include/mock_audio_processing.h" ]
|
2017-12-19 16:44:45 +01:00
|
|
|
deps = [
|
2018-11-07 14:29:54 +00:00
|
|
|
":api",
|
2019-08-23 21:29:17 +02:00
|
|
|
":audio_buffer",
|
2017-12-19 16:44:45 +01:00
|
|
|
":audio_processing",
|
|
|
|
|
":audio_processing_statistics",
|
|
|
|
|
"../../test:test_support",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-10-28 05:44:03 -07:00
|
|
|
group("audio_processing_tests") {
|
|
|
|
|
testonly = true
|
2017-12-05 15:07:16 +01:00
|
|
|
deps = [
|
2016-10-28 05:44:03 -07:00
|
|
|
":audioproc_test_utils",
|
2020-03-12 12:45:21 +01:00
|
|
|
"transient:click_annotate",
|
|
|
|
|
"transient:transient_suppression_test",
|
2016-10-28 05:44:03 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (rtc_enable_protobuf) {
|
2017-12-05 15:07:16 +01:00
|
|
|
deps += [
|
2017-01-17 02:37:34 -08:00
|
|
|
":audioproc_unittest_proto",
|
2017-09-27 11:51:10 +02:00
|
|
|
"aec_dump:aec_dump_unittests",
|
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
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("audio_processing_unittests") {
|
2017-01-19 08:27:11 -08:00
|
|
|
testonly = true
|
2017-04-25 04:04:50 -07:00
|
|
|
|
2017-12-19 09:45:24 +01:00
|
|
|
configs += [ ":apm_debug_dump" ]
|
2017-01-19 08:27:11 -08:00
|
|
|
sources = [
|
|
|
|
|
"audio_buffer_unittest.cc",
|
2018-02-16 12:39:00 +01:00
|
|
|
"audio_frame_view_unittest.cc",
|
2017-01-19 08:27:11 -08:00
|
|
|
"config_unittest.cc",
|
2018-09-28 12:40:47 +02:00
|
|
|
"echo_control_mobile_unittest.cc",
|
2018-02-16 12:39:00 +01:00
|
|
|
"gain_controller2_unittest.cc",
|
2017-01-19 08:27:11 -08:00
|
|
|
"splitting_filter_unittest.cc",
|
2017-09-27 11:51:10 +02:00
|
|
|
"test/fake_recording_device_unittest.cc",
|
2017-01-19 08:27:11 -08:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2017-09-27 11:51:10 +02:00
|
|
|
":analog_mic_simulation",
|
2018-11-06 14:24:51 +01:00
|
|
|
":api",
|
2017-12-11 10:28:16 +01:00
|
|
|
":apm_logging",
|
2019-03-05 08:40:48 +01:00
|
|
|
":audio_buffer",
|
2018-02-16 12:39:00 +01:00
|
|
|
":audio_frame_view",
|
2017-01-19 08:27:11 -08:00
|
|
|
":audio_processing",
|
|
|
|
|
":audioproc_test_utils",
|
2018-11-06 14:24:51 +01:00
|
|
|
":config",
|
2018-03-02 16:03:21 +01:00
|
|
|
":file_audio_generator_unittests",
|
2019-08-23 21:29:17 +02:00
|
|
|
":high_pass_filter",
|
2017-12-19 16:44:45 +01:00
|
|
|
":mocks",
|
2020-03-12 12:45:21 +01:00
|
|
|
":voice_detection",
|
2017-09-04 05:43:17 -07:00
|
|
|
"../../api:array_view",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../../api:scoped_refptr",
|
2018-02-16 13:43:49 +01:00
|
|
|
"../../api/audio:aec3_config",
|
2018-02-27 13:58:45 +01:00
|
|
|
"../../api/audio:aec3_factory",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../../common_audio",
|
2018-02-05 15:50:41 +01:00
|
|
|
"../../common_audio:common_audio_c",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../../rtc_base",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../../rtc_base:checks",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:gtest_prod",
|
2019-10-19 12:03:23 +02:00
|
|
|
"../../rtc_base:ignore_wundef",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:protobuf_utils",
|
|
|
|
|
"../../rtc_base:rtc_base_approved",
|
2018-11-23 13:15:08 +01:00
|
|
|
"../../rtc_base:rtc_base_tests_utils",
|
2018-03-07 14:18:56 +01:00
|
|
|
"../../rtc_base:safe_minmax",
|
2019-03-26 14:37:01 +01:00
|
|
|
"../../rtc_base:task_queue_for_test",
|
2018-07-25 16:05:48 +02:00
|
|
|
"../../rtc_base/system:arch",
|
2018-03-23 10:39:34 +01:00
|
|
|
"../../rtc_base/system:file_wrapper",
|
2017-12-06 09:17:14 +01:00
|
|
|
"../../system_wrappers",
|
|
|
|
|
"../../system_wrappers:cpu_features_api",
|
2018-03-15 15:05:39 +01:00
|
|
|
"../../test:fileutils",
|
2019-11-28 17:09:30 +01:00
|
|
|
"../../test:rtc_expect_death",
|
2017-01-19 08:27:11 -08:00
|
|
|
"../../test:test_support",
|
2017-10-13 12:37:27 +02:00
|
|
|
"../audio_coding:neteq_input_audio_tools",
|
2017-06-08 08:12:46 -07:00
|
|
|
"aec_dump:mock_aec_dump_unittests",
|
2018-07-06 14:54:30 +02:00
|
|
|
"agc:agc_unittests",
|
2018-03-28 09:45:29 +02:00
|
|
|
"agc2:adaptive_digital_unittests",
|
2018-05-07 13:26:47 +02:00
|
|
|
"agc2:biquad_filter_unittests",
|
2018-02-16 11:54:07 +01:00
|
|
|
"agc2:fixed_digital_unittests",
|
2018-04-04 15:05:57 +02:00
|
|
|
"agc2:noise_estimator_unittests",
|
2018-11-13 14:44:15 +01:00
|
|
|
"agc2:rnn_vad_with_level_unittests",
|
2018-11-01 21:31:38 +01:00
|
|
|
"agc2:test_utils",
|
2018-04-17 16:46:45 +02:00
|
|
|
"agc2/rnn_vad:unittests",
|
2017-03-23 05:17:06 -07:00
|
|
|
"test/conversational_speech:unittest",
|
2020-03-12 12:45:21 +01:00
|
|
|
"transient:transient_suppression_unittests",
|
2018-07-05 16:41:55 +02:00
|
|
|
"utility:legacy_delay_estimator_unittest",
|
2019-02-21 17:35:43 +01:00
|
|
|
"utility:pffft_wrapper_unittest",
|
2018-02-05 11:15:23 +01:00
|
|
|
"vad:vad_unittests",
|
2017-01-19 08:27:11 -08:00
|
|
|
"//testing/gtest",
|
2018-06-19 10:50:11 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2017-01-19 08:27:11 -08:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
defines = []
|
|
|
|
|
|
|
|
|
|
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",
|
2017-09-13 11:00:04 +02:00
|
|
|
":audioproc_test_utils",
|
2017-01-19 08:27:11 -08:00
|
|
|
":audioproc_unittest_proto",
|
2020-03-20 15:55:29 +01:00
|
|
|
":rms_level",
|
2018-09-10 10:18:07 +02:00
|
|
|
":runtime_settings_protobuf_utils",
|
2018-04-12 22:44:09 +02:00
|
|
|
"../../api/audio:audio_frame_api",
|
2018-12-17 09:44:06 +01:00
|
|
|
"../../api/audio:echo_control",
|
|
|
|
|
"../../rtc_base:rtc_base_tests_utils",
|
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",
|
2019-08-26 10:12:41 +02:00
|
|
|
"//third_party/abseil-cpp/absl/flags:flag",
|
2017-01-19 08:27:11 -08:00
|
|
|
]
|
|
|
|
|
sources += [
|
|
|
|
|
"audio_processing_impl_locking_unittest.cc",
|
|
|
|
|
"audio_processing_impl_unittest.cc",
|
|
|
|
|
"audio_processing_unittest.cc",
|
2018-09-28 12:40:47 +02:00
|
|
|
"echo_control_mobile_bit_exact_unittest.cc",
|
2017-01-19 08:27:11 -08:00
|
|
|
"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",
|
2019-08-23 21:29:17 +02:00
|
|
|
"high_pass_filter_unittest.cc",
|
2017-01-19 08:27:11 -08:00
|
|
|
"level_estimator_unittest.cc",
|
|
|
|
|
"residual_echo_detector_unittest.cc",
|
|
|
|
|
"rms_level_unittest.cc",
|
|
|
|
|
"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",
|
2018-12-17 09:44:06 +01:00
|
|
|
"test/echo_control_mock.h",
|
2017-01-19 08:27:11 -08:00
|
|
|
"test/test_utils.h",
|
|
|
|
|
"voice_detection_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("audio_processing_perf_tests") {
|
2017-01-05 07:09:50 -08:00
|
|
|
testonly = true
|
2019-10-18 13:29:43 +02:00
|
|
|
configs += [ ":apm_debug_dump" ]
|
2017-04-25 04:04:50 -07:00
|
|
|
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "audio_processing_performance_unittest.cc" ]
|
2017-01-05 07:09:50 -08:00
|
|
|
deps = [
|
|
|
|
|
":audio_processing",
|
|
|
|
|
":audioproc_test_utils",
|
2017-11-24 15:35:57 +01:00
|
|
|
"../../api:array_view",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:protobuf_utils",
|
2017-11-24 15:35:57 +01:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2017-12-06 09:17:14 +01:00
|
|
|
"../../system_wrappers",
|
2018-01-05 15:34:09 +01:00
|
|
|
"../../test:perf_test",
|
2017-11-24 15:35:57 +01:00
|
|
|
"../../test:test_support",
|
2017-01-05 07:09:50 -08:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("file_audio_generator_unittests") {
|
2018-03-02 16:03:21 +01:00
|
|
|
testonly = true
|
|
|
|
|
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "audio_generator/file_audio_generator_unittest.cc" ]
|
2018-03-02 16:03:21 +01:00
|
|
|
|
|
|
|
|
deps = [
|
2018-11-07 14:29:54 +00:00
|
|
|
":api",
|
2018-03-02 16:03:21 +01:00
|
|
|
":audio_generator_factory",
|
|
|
|
|
":audio_processing",
|
|
|
|
|
":file_audio_generator",
|
|
|
|
|
"../../rtc_base:rtc_base_approved",
|
2018-03-15 15:05:39 +01:00
|
|
|
"../../test:fileutils",
|
2018-03-02 16:03:21 +01:00
|
|
|
"../../test:test_support",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("analog_mic_simulation") {
|
2017-09-27 11:51:10 +02:00
|
|
|
sources = [
|
|
|
|
|
"test/fake_recording_device.cc",
|
|
|
|
|
"test/fake_recording_device.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../../api:array_view",
|
2018-04-12 22:44:09 +02:00
|
|
|
"../../api/audio:audio_frame_api",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../../common_audio",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../../rtc_base:checks",
|
2017-09-27 11:51:10 +02:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2018-07-02 11:37:47 +02:00
|
|
|
"../../rtc_base:safe_minmax",
|
2018-07-06 14:54:30 +02:00
|
|
|
"agc:gain_map",
|
2018-06-19 10:50:11 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2017-09-27 11:51:10 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-01-17 02:37:34 -08:00
|
|
|
if (rtc_enable_protobuf) {
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("audioproc_f_impl") {
|
2017-01-17 02:37:34 -08:00
|
|
|
testonly = true
|
2018-10-25 09:56:49 +02:00
|
|
|
configs += [ ":apm_debug_dump" ]
|
2017-01-17 02:37:34 -08:00
|
|
|
sources = [
|
|
|
|
|
"test/aec_dump_based_simulator.cc",
|
|
|
|
|
"test/aec_dump_based_simulator.h",
|
2019-04-03 16:06:42 +02:00
|
|
|
"test/api_call_statistics.cc",
|
|
|
|
|
"test/api_call_statistics.h",
|
2017-01-17 02:37:34 -08:00
|
|
|
"test/audio_processing_simulator.cc",
|
|
|
|
|
"test/audio_processing_simulator.h",
|
2018-03-15 12:22:52 +01:00
|
|
|
"test/audioproc_float_impl.cc",
|
|
|
|
|
"test/audioproc_float_impl.h",
|
2017-01-17 02:37:34 -08:00
|
|
|
"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 = [
|
2017-09-27 11:51:10 +02:00
|
|
|
":analog_mic_simulation",
|
2018-11-07 14:29:54 +00:00
|
|
|
":api",
|
2018-10-25 09:56:49 +02:00
|
|
|
":apm_logging",
|
2017-01-17 02:37:34 -08:00
|
|
|
":audio_processing",
|
|
|
|
|
":audioproc_debug_proto",
|
|
|
|
|
":audioproc_protobuf_utils",
|
|
|
|
|
":audioproc_test_utils",
|
2018-09-10 10:18:07 +02:00
|
|
|
":runtime_settings_protobuf_utils",
|
2018-10-10 10:44:43 +02:00
|
|
|
"../../api/audio:aec3_config_json",
|
2018-02-27 13:58:45 +01:00
|
|
|
"../../api/audio:aec3_factory",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../../common_audio",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../../rtc_base:checks",
|
2019-10-19 12:03:23 +02:00
|
|
|
"../../rtc_base:ignore_wundef",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:protobuf_utils",
|
|
|
|
|
"../../rtc_base:rtc_base_approved",
|
2018-03-08 07:47:14 +01:00
|
|
|
"../../rtc_base:rtc_json",
|
2019-03-26 14:37:01 +01:00
|
|
|
"../../rtc_base:task_queue_for_test",
|
2017-01-17 02:37:34 -08:00
|
|
|
"../../system_wrappers",
|
|
|
|
|
"../../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",
|
2019-07-18 13:44:12 +02:00
|
|
|
"//third_party/abseil-cpp/absl/flags:flag",
|
|
|
|
|
"//third_party/abseil-cpp/absl/flags:parse",
|
2018-11-20 12:27:20 +01:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2018-06-19 10:50:11 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2017-01-17 02:37:34 -08:00
|
|
|
]
|
2018-03-09 17:33:04 +01:00
|
|
|
} # audioproc_f_impl
|
2017-01-17 02:37:34 -08:00
|
|
|
}
|
2016-08-07 23:19:30 -07:00
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("audioproc_test_utils") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
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",
|
2017-09-13 11:00:04 +02:00
|
|
|
"test/bitexactness_tools.cc",
|
|
|
|
|
"test/bitexactness_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 = [
|
2018-11-07 14:29:54 +00:00
|
|
|
":api",
|
2019-03-05 08:40:48 +01:00
|
|
|
":audio_buffer",
|
2016-12-08 04:10:01 -08:00
|
|
|
":audio_processing",
|
2017-09-04 05:43:17 -07:00
|
|
|
"../../api:array_view",
|
2018-04-12 22:44:09 +02:00
|
|
|
"../../api/audio:audio_frame_api",
|
2016-06-13 00:19:48 -07:00
|
|
|
"../../common_audio",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../../rtc_base:checks",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2018-07-25 16:05:48 +02:00
|
|
|
"../../rtc_base/system:arch",
|
2017-12-06 09:17:14 +01:00
|
|
|
"../../system_wrappers",
|
2018-03-15 15:05:39 +01:00
|
|
|
"../../test:fileutils",
|
2017-09-13 11:00:04 +02:00
|
|
|
"../../test:test_support",
|
2017-10-13 12:37:27 +02:00
|
|
|
"../audio_coding:neteq_input_audio_tools",
|
2017-09-13 11:00:04 +02:00
|
|
|
"//testing/gtest",
|
2018-06-19 10:50:11 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2016-06-13 00:19:48 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (rtc_enable_protobuf) {
|
|
|
|
|
proto_library("audioproc_unittest_proto") {
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "test/unittest.proto" ]
|
2017-09-15 06:47:31 +02:00
|
|
|
proto_out_dir = "modules/audio_processing/test"
|
2016-06-13 00:19:48 -07:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_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",
|
2018-09-10 10:18:07 +02:00
|
|
|
"../../rtc_base:checks",
|
2019-10-19 12:03:23 +02:00
|
|
|
"../../rtc_base:ignore_wundef",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:protobuf_utils",
|
|
|
|
|
"../../rtc_base:rtc_base_approved",
|
2018-07-25 16:05:48 +02:00
|
|
|
"../../rtc_base/system:arch",
|
2016-06-13 00:19:48 -07:00
|
|
|
]
|
|
|
|
|
}
|
2018-09-10 10:18:07 +02:00
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("runtime_settings_protobuf_utils") {
|
2018-09-10 10:18:07 +02:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"test/runtime_setting_util.cc",
|
|
|
|
|
"test/runtime_setting_util.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2018-11-07 14:29:54 +00:00
|
|
|
":api",
|
2018-09-10 10:18:07 +02:00
|
|
|
":audioproc_debug_proto",
|
|
|
|
|
":audioproc_protobuf_utils",
|
|
|
|
|
"../../rtc_base:checks",
|
|
|
|
|
]
|
|
|
|
|
}
|
2016-06-13 00:19:48 -07:00
|
|
|
}
|
|
|
|
|
}
|