blob: 2758dc72badd053de934a279c663a0e0947d11d7 [file] [log] [blame]
aleloi77ad3942016-07-04 06:33:02 -07001# 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
mbonadei9aa3f0a2017-01-24 06:58:22 -08009import("../../webrtc.gni")
ehmaldonado38a21322016-09-02 04:10:34 -070010
kjellander6ceab082016-10-28 05:44:03 -070011group("audio_mixer") {
Mirko Bonadei03d6f2f2017-12-05 15:33:16 +010012 deps = [
kjellander6ceab082016-10-28 05:44:03 -070013 ":audio_frame_manipulator",
14 ":audio_mixer_impl",
15 ]
16}
17
aleloi201dfe92016-10-20 05:06:39 -070018rtc_static_library("audio_mixer_impl") {
aleloi77ad3942016-07-04 06:33:02 -070019 sources = [
aleloi5d167d62016-08-24 02:20:54 -070020 "audio_mixer_impl.cc",
21 "audio_mixer_impl.h",
aleloi623427c2016-12-08 02:37:58 -080022 "default_output_rate_calculator.cc",
23 "default_output_rate_calculator.h",
aleloi24899e52017-02-21 05:06:29 -080024 "frame_combiner.cc",
25 "frame_combiner.h",
aleloi623427c2016-12-08 02:37:58 -080026 "output_rate_calculator.h",
aleloi77ad3942016-07-04 06:33:02 -070027 ]
28
aleloi44968092016-08-08 10:18:58 -070029 public = [
aleloi201dfe92016-10-20 05:06:39 -070030 "audio_mixer_impl.h",
aleloi24899e52017-02-21 05:06:29 -080031 "default_output_rate_calculator.h", # For creating a mixer with limiter disabled.
32 "frame_combiner.h",
aleloi44968092016-08-08 10:18:58 -070033 ]
34
aleloi77ad3942016-07-04 06:33:02 -070035 deps = [
aleloi201dfe92016-10-20 05:06:39 -070036 ":audio_frame_manipulator",
mbonadei1140f972017-04-26 03:38:35 -070037 "..:module_api",
aleloi70f866c2016-08-16 02:15:49 -070038 "../..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +010039 "../../:typedefs",
kwiberg529662a2017-09-04 05:43:17 -070040 "../../api:array_view",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +010041 "../../api/audio:audio_mixer_api",
aleloi6321b492016-12-05 01:46:09 -080042 "../../audio/utility:audio_frame_operations",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010043 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -070044 "../../rtc_base:rtc_base_approved",
aleloi77ad3942016-07-04 06:33:02 -070045 "../../system_wrappers",
aleloi6321b492016-12-05 01:46:09 -080046 "../audio_processing",
aleloi201dfe92016-10-20 05:06:39 -070047 ]
48}
49
50rtc_static_library("audio_frame_manipulator") {
51 visibility = [
52 ":*",
53 "../../modules:*",
54 ]
55
56 sources = [
57 "audio_frame_manipulator.cc",
58 "audio_frame_manipulator.h",
59 ]
60
61 deps = [
mbonadei1140f972017-04-26 03:38:35 -070062 "..:module_api",
Mirko Bonadei5e849cf2017-12-05 08:02:53 +010063 "../../audio/utility:audio_frame_operations",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010064 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -070065 "../../rtc_base:rtc_base_approved",
aleloi77ad3942016-07-04 06:33:02 -070066 ]
67}
ehmaldonado36268652017-01-19 08:27:11 -080068
69if (rtc_include_tests) {
70 rtc_source_set("audio_mixer_unittests") {
ehmaldonado36268652017-01-19 08:27:11 -080071 testonly = true
kjellandere0629c02017-04-25 04:04:50 -070072
ehmaldonado36268652017-01-19 08:27:11 -080073 sources = [
74 "audio_frame_manipulator_unittest.cc",
75 "audio_mixer_impl_unittest.cc",
aleloi24899e52017-02-21 05:06:29 -080076 "frame_combiner_unittest.cc",
aleloi2c9306e2017-03-29 04:25:16 -070077 "gain_change_calculator.cc",
78 "gain_change_calculator.h",
79 "sine_wave_generator.cc",
80 "sine_wave_generator.h",
ehmaldonado36268652017-01-19 08:27:11 -080081 ]
82 deps = [
83 ":audio_frame_manipulator",
84 ":audio_mixer_impl",
mbonadei1140f972017-04-26 03:38:35 -070085 "..:module_api",
kwiberg529662a2017-09-04 05:43:17 -070086 "../../api:array_view",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +010087 "../../api/audio:audio_mixer_api",
aleloi2c9306e2017-03-29 04:25:16 -070088 "../../audio/utility:audio_frame_operations",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010089 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -070090 "../../rtc_base:rtc_base_approved",
Tommi68561562018-02-13 19:47:50 +010091 "../../rtc_base:rtc_task_queue_for_test",
ehmaldonado36268652017-01-19 08:27:11 -080092 "../../test:test_support",
ehmaldonado36268652017-01-19 08:27:11 -080093 ]
ehmaldonado36268652017-01-19 08:27:11 -080094 }
95}