2016-07-04 06:33:02 -07: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")
|
2016-09-02 04:10:34 -07:00
|
|
|
|
2016-10-28 05:44:03 -07:00
|
|
|
group("audio_mixer") {
|
|
|
|
|
public_deps = [
|
|
|
|
|
":audio_frame_manipulator",
|
|
|
|
|
":audio_mixer_impl",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-10-20 05:06:39 -07:00
|
|
|
rtc_static_library("audio_mixer_impl") {
|
2016-07-04 06:33:02 -07:00
|
|
|
sources = [
|
2016-08-24 02:20:54 -07:00
|
|
|
"audio_mixer_impl.cc",
|
|
|
|
|
"audio_mixer_impl.h",
|
2016-12-08 02:37:58 -08:00
|
|
|
"default_output_rate_calculator.cc",
|
|
|
|
|
"default_output_rate_calculator.h",
|
2017-02-21 05:06:29 -08:00
|
|
|
"frame_combiner.cc",
|
|
|
|
|
"frame_combiner.h",
|
2016-12-08 02:37:58 -08:00
|
|
|
"output_rate_calculator.h",
|
2016-07-04 06:33:02 -07:00
|
|
|
]
|
|
|
|
|
|
2016-08-08 10:18:58 -07:00
|
|
|
public = [
|
2016-10-20 05:06:39 -07:00
|
|
|
"audio_mixer_impl.h",
|
2017-02-21 05:06:29 -08:00
|
|
|
"default_output_rate_calculator.h", # For creating a mixer with limiter disabled.
|
|
|
|
|
"frame_combiner.h",
|
2016-08-08 10:18:58 -07:00
|
|
|
]
|
|
|
|
|
|
2016-10-20 05:06:39 -07:00
|
|
|
public_deps = [
|
|
|
|
|
"../../api:audio_mixer_api",
|
|
|
|
|
]
|
2016-07-04 06:33:02 -07:00
|
|
|
|
|
|
|
|
deps = [
|
2016-10-20 05:06:39 -07:00
|
|
|
":audio_frame_manipulator",
|
2017-04-26 03:38:35 -07:00
|
|
|
"..:module_api",
|
2016-08-16 02:15:49 -07:00
|
|
|
"../..:webrtc_common",
|
2017-09-04 05:43:17 -07:00
|
|
|
"../../api:array_view",
|
2016-12-05 01:46:09 -08:00
|
|
|
"../../audio/utility:audio_frame_operations",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2016-07-04 06:33:02 -07:00
|
|
|
"../../system_wrappers",
|
2016-12-05 01:46:09 -08:00
|
|
|
"../audio_processing",
|
2016-10-20 05:06:39 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_static_library("audio_frame_manipulator") {
|
|
|
|
|
visibility = [
|
|
|
|
|
":*",
|
|
|
|
|
"../../modules:*",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"audio_frame_manipulator.cc",
|
|
|
|
|
"audio_frame_manipulator.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2017-04-26 03:38:35 -07:00
|
|
|
"..:module_api",
|
2016-12-05 01:46:09 -08:00
|
|
|
"../../audio/utility",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2016-07-04 06:33:02 -07:00
|
|
|
]
|
|
|
|
|
}
|
2017-01-19 08:27:11 -08:00
|
|
|
|
|
|
|
|
if (rtc_include_tests) {
|
|
|
|
|
rtc_source_set("audio_mixer_unittests") {
|
|
|
|
|
testonly = true
|
2017-04-25 04:04:50 -07:00
|
|
|
|
2017-01-19 08:27:11 -08:00
|
|
|
sources = [
|
|
|
|
|
"audio_frame_manipulator_unittest.cc",
|
|
|
|
|
"audio_mixer_impl_unittest.cc",
|
2017-02-21 05:06:29 -08:00
|
|
|
"frame_combiner_unittest.cc",
|
2017-03-29 04:25:16 -07:00
|
|
|
"gain_change_calculator.cc",
|
|
|
|
|
"gain_change_calculator.h",
|
|
|
|
|
"sine_wave_generator.cc",
|
|
|
|
|
"sine_wave_generator.h",
|
2017-01-19 08:27:11 -08:00
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":audio_frame_manipulator",
|
|
|
|
|
":audio_mixer_impl",
|
2017-04-26 03:38:35 -07:00
|
|
|
"..:module_api",
|
2017-09-04 05:43:17 -07:00
|
|
|
"../../api:array_view",
|
2017-01-19 08:27:11 -08:00
|
|
|
"../../api:audio_mixer_api",
|
2017-03-29 04:25:16 -07:00
|
|
|
"../../audio/utility:audio_frame_operations",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
|
|
|
|
"../../rtc_base:rtc_task_queue",
|
2017-01-19 08:27:11 -08:00
|
|
|
"../../test:test_support",
|
|
|
|
|
"//testing/gmock",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|