2015-09-25 13:58:30 +02:00
|
|
|
# Copyright (c) 2015 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")
|
2017-03-06 04:01:16 -08:00
|
|
|
if (is_android) {
|
|
|
|
|
import("//build/config/android/config.gni")
|
|
|
|
|
import("//build/config/android/rules.gni")
|
|
|
|
|
}
|
2015-09-25 13:58:30 +02:00
|
|
|
|
2016-09-23 00:38:52 -07:00
|
|
|
rtc_static_library("audio") {
|
2015-09-25 13:58:30 +02:00
|
|
|
sources = [
|
2018-01-17 11:18:31 +01:00
|
|
|
"audio_level.cc",
|
|
|
|
|
"audio_level.h",
|
2015-09-25 13:58:30 +02:00
|
|
|
"audio_receive_stream.cc",
|
|
|
|
|
"audio_receive_stream.h",
|
2015-10-16 14:35:07 -07:00
|
|
|
"audio_send_stream.cc",
|
|
|
|
|
"audio_send_stream.h",
|
2015-11-06 15:34:49 -08:00
|
|
|
"audio_state.cc",
|
|
|
|
|
"audio_state.h",
|
Remove voe::TransmitMixer
TransmitMixer's functionality is moved into the AudioTransportProxy
owned by AudioState. This removes the need for an AudioTransport
implementation in VoEBaseImpl, which means that the proxy is no longer
a proxy, hence AudioTransportProxy is renamed to AudioTransportImpl.
In the short term, AudioState needs to know which AudioDeviceModule is
used, so it is added in AudioState::Config. AudioTransportImpl needs
to know which AudioSendStream:s are currently enabled to send, so
AudioState maintains a map of them, which is reduced into a simple
vector for AudioTransportImpl.
To encode and transmit audio,
AudioSendStream::OnAudioData(std::unique_ptr<AudioFrame> audio_frame)
is introduced, which is used in both the Chromium and standalone use
cases. This removes the need for two different instances of
voe::Channel::ProcessAndEncodeAudio(), so there is now only one,
taking an AudioFrame as argument. Callers need to allocate their own
AudioFrame:s, which is wasteful but not a regression since this was
already happening in the voe::Channel functions.
Most of the logic changed resides in
AudioTransportImpl::RecordedDataIsAvailable(), where two strange
things were found:
1. The clock drift parameter was ineffective since
apm->echo_cancellation()->enable_drift_compensation(false) is
called during initialization.
2. The output parameter 'new_mic_volume' was never set - instead it
was returned as a result, causing the ADM to never update the
analog mic gain
(https://cs.chromium.org/chromium/src/third_party/webrtc/voice_engine/voe_base_impl.cc?q=voe_base_impl.cc&dr&l=100).
Besides this, tests are updated, and some dead code is removed which
was found in the process.
Bug: webrtc:4690, webrtc:8591
Change-Id: I789d5296bf5efb7299a5ee05a4f3ce6abf9124b2
Reviewed-on: https://webrtc-review.googlesource.com/26681
Commit-Queue: Fredrik Solenberg <solenberg@webrtc.org>
Reviewed-by: Oskar Sundbom <ossu@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#21301}
2017-12-15 16:42:15 +01:00
|
|
|
"audio_transport_impl.cc",
|
|
|
|
|
"audio_transport_impl.h",
|
2018-10-04 14:28:39 +02:00
|
|
|
"channel_receive.cc",
|
|
|
|
|
"channel_receive.h",
|
|
|
|
|
"channel_send.cc",
|
|
|
|
|
"channel_send.h",
|
2015-10-22 10:49:27 +02:00
|
|
|
"conversion.h",
|
2017-11-01 11:06:56 +01:00
|
|
|
"null_audio_poller.cc",
|
|
|
|
|
"null_audio_poller.h",
|
2018-01-17 11:18:31 +01:00
|
|
|
"remix_resample.cc",
|
|
|
|
|
"remix_resample.h",
|
|
|
|
|
"transport_feedback_packet_loss_tracker.cc",
|
|
|
|
|
"transport_feedback_packet_loss_tracker.h",
|
2015-09-25 13:58:30 +02:00
|
|
|
]
|
|
|
|
|
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2015-09-25 13:58:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deps = [
|
2018-01-17 11:18:31 +01:00
|
|
|
"../api:array_view",
|
2016-12-07 08:23:27 -08:00
|
|
|
"../api:call_api",
|
2018-01-17 11:18:31 +01:00
|
|
|
"../api:libjingle_peerconnection_api",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2018-01-17 11:18:31 +01:00
|
|
|
"../api:transport_api",
|
2018-02-23 13:18:29 +01:00
|
|
|
"../api/audio:aec3_factory",
|
2018-04-12 22:44:09 +02:00
|
|
|
"../api/audio:audio_frame_api",
|
2018-02-16 13:43:49 +01:00
|
|
|
"../api/audio:audio_mixer_api",
|
2017-05-02 06:46:30 -07:00
|
|
|
"../api/audio_codecs:audio_codecs_api",
|
2017-10-10 14:38:11 +02:00
|
|
|
"../call:bitrate_allocator",
|
2016-12-07 04:52:58 -08:00
|
|
|
"../call:call_interfaces",
|
2017-06-01 04:02:35 -07:00
|
|
|
"../call:rtp_interfaces",
|
2016-11-22 06:42:53 -08:00
|
|
|
"../common_audio",
|
2018-02-05 15:50:41 +01:00
|
|
|
"../common_audio:common_audio_c",
|
2018-02-01 11:04:46 -08:00
|
|
|
"../logging:rtc_event_audio",
|
2018-01-17 11:18:31 +01:00
|
|
|
"../logging:rtc_event_log_api",
|
2018-10-30 16:11:02 +01:00
|
|
|
"../logging:rtc_stream_config",
|
2018-01-17 11:18:31 +01:00
|
|
|
"../modules/audio_coding",
|
2018-11-01 11:13:44 +01:00
|
|
|
"../modules/audio_coding:audio_encoder_cng",
|
2018-01-17 11:18:31 +01:00
|
|
|
"../modules/audio_coding:audio_network_adaptor_config",
|
2016-11-17 06:28:59 -08:00
|
|
|
"../modules/audio_device",
|
|
|
|
|
"../modules/audio_processing",
|
2018-11-07 14:29:54 +00:00
|
|
|
"../modules/audio_processing:api",
|
2017-02-07 07:14:08 -08:00
|
|
|
"../modules/bitrate_controller:bitrate_controller",
|
2016-12-07 08:23:27 -08:00
|
|
|
"../modules/pacing:pacing",
|
|
|
|
|
"../modules/remote_bitrate_estimator:remote_bitrate_estimator",
|
2017-12-06 07:51:33 +01:00
|
|
|
"../modules/rtp_rtcp",
|
2018-01-17 11:18:31 +01:00
|
|
|
"../modules/rtp_rtcp:rtp_rtcp_format",
|
|
|
|
|
"../modules/utility",
|
2018-04-03 13:40:05 +02:00
|
|
|
"../rtc_base:audio_format_to_string",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:checks",
|
2018-01-17 11:18:31 +01:00
|
|
|
"../rtc_base:rate_limiter",
|
2017-11-01 11:06:56 +01:00
|
|
|
"../rtc_base:rtc_base",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_base_approved",
|
|
|
|
|
"../rtc_base:rtc_task_queue",
|
2018-03-07 14:18:56 +01:00
|
|
|
"../rtc_base:safe_minmax",
|
2019-01-23 12:37:49 +01:00
|
|
|
"../rtc_base/experiments:audio_allocation_settings",
|
2015-09-25 13:58:30 +02:00
|
|
|
"../system_wrappers",
|
2018-09-28 08:51:10 +02:00
|
|
|
"../system_wrappers:field_trial",
|
|
|
|
|
"../system_wrappers:metrics",
|
Remove voe::TransmitMixer
TransmitMixer's functionality is moved into the AudioTransportProxy
owned by AudioState. This removes the need for an AudioTransport
implementation in VoEBaseImpl, which means that the proxy is no longer
a proxy, hence AudioTransportProxy is renamed to AudioTransportImpl.
In the short term, AudioState needs to know which AudioDeviceModule is
used, so it is added in AudioState::Config. AudioTransportImpl needs
to know which AudioSendStream:s are currently enabled to send, so
AudioState maintains a map of them, which is reduced into a simple
vector for AudioTransportImpl.
To encode and transmit audio,
AudioSendStream::OnAudioData(std::unique_ptr<AudioFrame> audio_frame)
is introduced, which is used in both the Chromium and standalone use
cases. This removes the need for two different instances of
voe::Channel::ProcessAndEncodeAudio(), so there is now only one,
taking an AudioFrame as argument. Callers need to allocate their own
AudioFrame:s, which is wasteful but not a regression since this was
already happening in the voe::Channel functions.
Most of the logic changed resides in
AudioTransportImpl::RecordedDataIsAvailable(), where two strange
things were found:
1. The clock drift parameter was ineffective since
apm->echo_cancellation()->enable_drift_compensation(false) is
called during initialization.
2. The output parameter 'new_mic_volume' was never set - instead it
was returned as a result, causing the ADM to never update the
analog mic gain
(https://cs.chromium.org/chromium/src/third_party/webrtc/voice_engine/voe_base_impl.cc?q=voe_base_impl.cc&dr&l=100).
Besides this, tests are updated, and some dead code is removed which
was found in the process.
Bug: webrtc:4690, webrtc:8591
Change-Id: I789d5296bf5efb7299a5ee05a4f3ce6abf9124b2
Reviewed-on: https://webrtc-review.googlesource.com/26681
Commit-Queue: Fredrik Solenberg <solenberg@webrtc.org>
Reviewed-by: Oskar Sundbom <ossu@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#21301}
2017-12-15 16:42:15 +01:00
|
|
|
"utility:audio_frame_operations",
|
Use absl::make_unique and absl::WrapUnique directly
Instead of going through our wrappers in ptr_util.h.
This CL was generated by the following script:
git grep -l ptr_util | xargs perl -pi -e 's,#include "rtc_base/ptr_util.h",#include "absl/memory/memory.h",'
git grep -l MakeUnique | xargs perl -pi -e 's,\b(rtc::)?MakeUnique\b,absl::make_unique,g'
git grep -l WrapUnique | xargs perl -pi -e 's,\b(rtc::)?WrapUnique\b,absl::WrapUnique,g'
git checkout -- rtc_base/ptr_util{.h,_unittest.cc}
git cl format
Followed by manually adding dependencies on
//third_party/abseil-cpp/absl/memory until `gn check` stopped
complaining.
Bug: webrtc:9473
Change-Id: I89ccd363f070479b8c431eb2c3d404a46eaacc1c
Reviewed-on: https://webrtc-review.googlesource.com/86600
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23850}
2018-07-05 11:40:33 +02:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2018-06-15 12:28:07 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2015-09-25 13:58:30 +02:00
|
|
|
]
|
|
|
|
|
}
|
2016-06-14 12:52:54 +02:00
|
|
|
if (rtc_include_tests) {
|
2017-09-14 14:46:47 +02:00
|
|
|
rtc_source_set("audio_end_to_end_test") {
|
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"test/audio_end_to_end_test.cc",
|
|
|
|
|
"test/audio_end_to_end_test.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":audio",
|
2018-08-17 14:26:54 +02:00
|
|
|
"../api:simulated_network_api",
|
2018-08-20 13:30:39 +02:00
|
|
|
"../call:fake_network",
|
|
|
|
|
"../call:simulated_network",
|
2017-09-14 14:46:47 +02:00
|
|
|
"../system_wrappers:system_wrappers",
|
|
|
|
|
"../test:test_common",
|
|
|
|
|
"../test:test_support",
|
2019-01-07 10:21:47 -08:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2017-09-14 14:46:47 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_source_set("audio_tests") {
|
2016-06-14 12:52:54 +02:00
|
|
|
testonly = true
|
2016-12-07 08:23:27 -08:00
|
|
|
|
2016-06-14 12:52:54 +02:00
|
|
|
sources = [
|
|
|
|
|
"audio_receive_stream_unittest.cc",
|
2017-09-15 09:56:08 -07:00
|
|
|
"audio_send_stream_tests.cc",
|
2016-06-14 12:52:54 +02:00
|
|
|
"audio_send_stream_unittest.cc",
|
|
|
|
|
"audio_state_unittest.cc",
|
2018-01-17 11:18:31 +01:00
|
|
|
"mock_voe_channel_proxy.h",
|
|
|
|
|
"remix_resample_unittest.cc",
|
2018-08-07 08:53:41 +02:00
|
|
|
"test/audio_stats_test.cc",
|
2018-10-26 12:57:07 +02:00
|
|
|
"test/media_transport_test.cc",
|
2018-01-17 11:18:31 +01:00
|
|
|
"transport_feedback_packet_loss_tracker_unittest.cc",
|
2016-06-14 12:52:54 +02:00
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":audio",
|
2017-09-14 14:46:47 +02:00
|
|
|
":audio_end_to_end_test",
|
2018-10-26 12:57:07 +02:00
|
|
|
"../api:loopback_media_transport",
|
2016-11-22 06:42:53 -08:00
|
|
|
"../api:mock_audio_mixer",
|
2018-10-25 09:52:57 -07:00
|
|
|
"../api:mock_frame_decryptor",
|
|
|
|
|
"../api:mock_frame_encryptor",
|
2018-04-12 22:44:09 +02:00
|
|
|
"../api/audio:audio_frame_api",
|
2018-10-26 12:57:07 +02:00
|
|
|
"../api/audio_codecs:audio_codecs_api",
|
|
|
|
|
"../api/audio_codecs/opus:audio_decoder_opus",
|
|
|
|
|
"../api/audio_codecs/opus:audio_encoder_opus",
|
2018-05-08 14:52:22 +02:00
|
|
|
"../api/units:time_delta",
|
2018-10-26 12:57:07 +02:00
|
|
|
"../call:mock_bitrate_allocator",
|
Remove voe::TransmitMixer
TransmitMixer's functionality is moved into the AudioTransportProxy
owned by AudioState. This removes the need for an AudioTransport
implementation in VoEBaseImpl, which means that the proxy is no longer
a proxy, hence AudioTransportProxy is renamed to AudioTransportImpl.
In the short term, AudioState needs to know which AudioDeviceModule is
used, so it is added in AudioState::Config. AudioTransportImpl needs
to know which AudioSendStream:s are currently enabled to send, so
AudioState maintains a map of them, which is reduced into a simple
vector for AudioTransportImpl.
To encode and transmit audio,
AudioSendStream::OnAudioData(std::unique_ptr<AudioFrame> audio_frame)
is introduced, which is used in both the Chromium and standalone use
cases. This removes the need for two different instances of
voe::Channel::ProcessAndEncodeAudio(), so there is now only one,
taking an AudioFrame as argument. Callers need to allocate their own
AudioFrame:s, which is wasteful but not a regression since this was
already happening in the voe::Channel functions.
Most of the logic changed resides in
AudioTransportImpl::RecordedDataIsAvailable(), where two strange
things were found:
1. The clock drift parameter was ineffective since
apm->echo_cancellation()->enable_drift_compensation(false) is
called during initialization.
2. The output parameter 'new_mic_volume' was never set - instead it
was returned as a result, causing the ADM to never update the
analog mic gain
(https://cs.chromium.org/chromium/src/third_party/webrtc/voice_engine/voe_base_impl.cc?q=voe_base_impl.cc&dr&l=100).
Besides this, tests are updated, and some dead code is removed which
was found in the process.
Bug: webrtc:4690, webrtc:8591
Change-Id: I789d5296bf5efb7299a5ee05a4f3ce6abf9124b2
Reviewed-on: https://webrtc-review.googlesource.com/26681
Commit-Queue: Fredrik Solenberg <solenberg@webrtc.org>
Reviewed-by: Oskar Sundbom <ossu@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#21301}
2017-12-15 16:42:15 +01:00
|
|
|
"../call:mock_call_interfaces",
|
2018-02-22 14:49:02 +01:00
|
|
|
"../call:mock_rtp_interfaces",
|
2017-11-13 17:04:05 +01:00
|
|
|
"../call:rtp_interfaces",
|
2017-06-21 01:05:22 -07:00
|
|
|
"../call:rtp_receiver",
|
2018-01-17 11:18:31 +01:00
|
|
|
"../common_audio",
|
2018-01-03 09:08:20 +01:00
|
|
|
"../logging:mocks",
|
2018-10-26 12:57:07 +02:00
|
|
|
"../logging:rtc_event_log_api",
|
2016-11-17 06:28:59 -08:00
|
|
|
"../modules/audio_device:mock_audio_device",
|
2018-11-23 13:15:08 +01:00
|
|
|
"../rtc_base:rtc_base_tests_utils",
|
2019-02-15 10:54:55 +01:00
|
|
|
"../test:field_trial",
|
2018-10-26 12:57:07 +02:00
|
|
|
|
|
|
|
|
# For TestAudioDeviceModule
|
|
|
|
|
"../modules/audio_device:audio_device_impl",
|
2016-11-22 06:42:53 -08:00
|
|
|
"../modules/audio_mixer:audio_mixer_impl",
|
2017-11-24 17:29:59 +01:00
|
|
|
"../modules/audio_processing:audio_processing_statistics",
|
2017-12-19 16:44:45 +01:00
|
|
|
"../modules/audio_processing:mocks",
|
2018-01-02 14:20:17 +01:00
|
|
|
"../modules/bitrate_controller:mocks",
|
2016-12-07 08:23:27 -08:00
|
|
|
"../modules/pacing:pacing",
|
2017-11-13 17:04:05 +01:00
|
|
|
"../modules/rtp_rtcp:mock_rtp_rtcp",
|
|
|
|
|
"../modules/rtp_rtcp:rtp_rtcp_format",
|
2018-10-26 12:57:07 +02:00
|
|
|
"../modules/utility",
|
2018-01-17 11:18:31 +01:00
|
|
|
"../rtc_base:checks",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_base_approved",
|
|
|
|
|
"../rtc_base:rtc_task_queue",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:safe_compare",
|
2019-01-16 17:45:05 +01:00
|
|
|
"../rtc_base:timeutils",
|
2017-11-13 17:04:05 +01:00
|
|
|
"../system_wrappers:system_wrappers",
|
|
|
|
|
"../test:audio_codec_mocks",
|
|
|
|
|
"../test:rtp_test_utils",
|
2016-11-17 06:48:48 -08:00
|
|
|
"../test:test_common",
|
2016-12-05 01:46:09 -08:00
|
|
|
"../test:test_support",
|
2017-01-05 06:03:24 -08:00
|
|
|
"utility:utility_tests",
|
2016-06-14 12:52:54 +02:00
|
|
|
"//testing/gtest",
|
Use absl::make_unique and absl::WrapUnique directly
Instead of going through our wrappers in ptr_util.h.
This CL was generated by the following script:
git grep -l ptr_util | xargs perl -pi -e 's,#include "rtc_base/ptr_util.h",#include "absl/memory/memory.h",'
git grep -l MakeUnique | xargs perl -pi -e 's,\b(rtc::)?MakeUnique\b,absl::make_unique,g'
git grep -l WrapUnique | xargs perl -pi -e 's,\b(rtc::)?WrapUnique\b,absl::WrapUnique,g'
git checkout -- rtc_base/ptr_util{.h,_unittest.cc}
git cl format
Followed by manually adding dependencies on
//third_party/abseil-cpp/absl/memory until `gn check` stopped
complaining.
Bug: webrtc:9473
Change-Id: I89ccd363f070479b8c431eb2c3d404a46eaacc1c
Reviewed-on: https://webrtc-review.googlesource.com/86600
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23850}
2018-07-05 11:40:33 +02:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2016-06-14 12:52:54 +02:00
|
|
|
]
|
2017-03-20 02:06:18 -07:00
|
|
|
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2016-06-14 12:52:54 +02:00
|
|
|
}
|
|
|
|
|
}
|
2017-03-06 04:01:16 -08:00
|
|
|
|
|
|
|
|
if (rtc_enable_protobuf) {
|
2017-03-30 04:01:30 -07:00
|
|
|
rtc_test("low_bandwidth_audio_test") {
|
2017-03-06 04:01:16 -08:00
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"test/low_bandwidth_audio_test.cc",
|
|
|
|
|
]
|
|
|
|
|
|
2017-03-23 03:40:03 -07:00
|
|
|
deps = [
|
2017-09-14 14:46:47 +02:00
|
|
|
":audio_end_to_end_test",
|
2018-08-17 14:26:54 +02:00
|
|
|
"../api:simulated_network_api",
|
2017-03-23 03:40:03 -07:00
|
|
|
"../common_audio",
|
2017-08-29 05:51:57 -07:00
|
|
|
"../rtc_base:rtc_base_approved",
|
2017-03-23 03:40:03 -07:00
|
|
|
"../system_wrappers",
|
2018-03-15 15:05:39 +01:00
|
|
|
"../test:fileutils",
|
2017-03-23 03:40:03 -07:00
|
|
|
"../test:test_common",
|
|
|
|
|
"../test:test_main",
|
2017-07-17 01:41:41 -07:00
|
|
|
"//testing/gtest",
|
2017-03-23 03:40:03 -07:00
|
|
|
]
|
2017-03-06 04:01:16 -08:00
|
|
|
if (is_android) {
|
2017-03-23 03:40:03 -07:00
|
|
|
deps += [ "//testing/android/native_test:native_test_native_code" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
data = [
|
2017-09-15 06:47:31 +02:00
|
|
|
"../resources/voice_engine/audio_tiny16.wav",
|
2018-03-19 15:58:08 +01:00
|
|
|
"../resources/voice_engine/audio_tiny48.wav",
|
2018-03-18 22:31:06 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163)
|
|
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
group("low_bandwidth_audio_perf_test") {
|
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":low_bandwidth_audio_test",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
data = [
|
2017-09-28 16:14:37 +02:00
|
|
|
"test/low_bandwidth_audio_test.py",
|
2018-03-18 22:31:06 +01:00
|
|
|
"../resources/voice_engine/audio_tiny16.wav",
|
|
|
|
|
"../resources/voice_engine/audio_tiny48.wav",
|
2017-03-23 03:40:03 -07:00
|
|
|
]
|
2018-03-19 11:33:03 +01:00
|
|
|
if (is_win) {
|
|
|
|
|
data += [ "${root_out_dir}/low_bandwidth_audio_test.exe" ]
|
|
|
|
|
} else {
|
|
|
|
|
data += [ "${root_out_dir}/low_bandwidth_audio_test" ]
|
|
|
|
|
}
|
|
|
|
|
|
2018-01-15 17:37:04 +01:00
|
|
|
if (is_linux || is_android) {
|
2017-09-28 16:14:37 +02:00
|
|
|
data += [
|
|
|
|
|
"../tools_webrtc/audio_quality/linux/PolqaOem64",
|
|
|
|
|
"../tools_webrtc/audio_quality/linux/pesq",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
if (is_win) {
|
|
|
|
|
data += [
|
|
|
|
|
"../tools_webrtc/audio_quality/win/PolqaOem64.dll",
|
|
|
|
|
"../tools_webrtc/audio_quality/win/PolqaOem64.exe",
|
|
|
|
|
"../tools_webrtc/audio_quality/win/pesq.exe",
|
|
|
|
|
"../tools_webrtc/audio_quality/win/vcomp120.dll",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
if (is_mac) {
|
|
|
|
|
data += [ "../tools_webrtc/audio_quality/mac/pesq" ]
|
|
|
|
|
}
|
2018-03-15 13:52:41 +00:00
|
|
|
|
2018-03-18 22:31:06 +01:00
|
|
|
write_runtime_deps = "${root_out_dir}/${target_name}.runtime_deps"
|
2017-03-06 04:01:16 -08:00
|
|
|
}
|
|
|
|
|
}
|
2017-07-17 01:41:41 -07:00
|
|
|
|
|
|
|
|
rtc_source_set("audio_perf_tests") {
|
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"test/audio_bwe_integration_test.cc",
|
|
|
|
|
"test/audio_bwe_integration_test.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2018-08-17 14:26:54 +02:00
|
|
|
"../api:simulated_network_api",
|
2018-08-20 13:30:39 +02:00
|
|
|
"../call:fake_network",
|
|
|
|
|
"../call:simulated_network",
|
2017-07-17 01:41:41 -07:00
|
|
|
"../common_audio",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_base_approved",
|
2017-07-17 01:41:41 -07:00
|
|
|
"../system_wrappers",
|
|
|
|
|
"../test:field_trial",
|
2018-03-15 15:05:39 +01:00
|
|
|
"../test:fileutils",
|
2017-08-22 04:02:52 -07:00
|
|
|
"../test:single_threaded_task_queue",
|
2017-07-17 01:41:41 -07:00
|
|
|
"../test:test_common",
|
|
|
|
|
"../test:test_main",
|
2018-10-30 21:12:42 +01:00
|
|
|
"../test:test_support",
|
2017-07-17 01:41:41 -07:00
|
|
|
"//testing/gtest",
|
Use absl::make_unique and absl::WrapUnique directly
Instead of going through our wrappers in ptr_util.h.
This CL was generated by the following script:
git grep -l ptr_util | xargs perl -pi -e 's,#include "rtc_base/ptr_util.h",#include "absl/memory/memory.h",'
git grep -l MakeUnique | xargs perl -pi -e 's,\b(rtc::)?MakeUnique\b,absl::make_unique,g'
git grep -l WrapUnique | xargs perl -pi -e 's,\b(rtc::)?WrapUnique\b,absl::WrapUnique,g'
git checkout -- rtc_base/ptr_util{.h,_unittest.cc}
git cl format
Followed by manually adding dependencies on
//third_party/abseil-cpp/absl/memory until `gn check` stopped
complaining.
Bug: webrtc:9473
Change-Id: I89ccd363f070479b8c431eb2c3d404a46eaacc1c
Reviewed-on: https://webrtc-review.googlesource.com/86600
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23850}
2018-07-05 11:40:33 +02:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2017-07-17 01:41:41 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
data = [
|
|
|
|
|
"//resources/voice_engine/audio_dtx16.wav",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-06-14 12:52:54 +02:00
|
|
|
}
|