Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Side by Side Diff: chromecast/media/cma/backend/alsa/BUILD.gn

Issue 2771143002: Implement runtime audio post-processing pipeline. See go/cast_audio.json (Closed)
Patch Set: Remove unordered_map of libraries. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/buildflag_header.gni") 5 import("//build/buildflag_header.gni")
6 import("//build/config/chromecast_build.gni") 6 import("//build/config/chromecast_build.gni")
7 import("//chromecast/chromecast.gni") 7 import("//chromecast/chromecast.gni")
8 import("//media/media_options.gni") 8 import("//media/media_options.gni")
9 import("//testing/test.gni") 9 import("//testing/test.gni")
10 10
(...skipping 26 matching lines...) Expand all
37 "alsa_volume_control.cc", 37 "alsa_volume_control.cc",
38 "alsa_volume_control.h", 38 "alsa_volume_control.h",
39 "alsa_wrapper.cc", 39 "alsa_wrapper.cc",
40 "alsa_wrapper.h", 40 "alsa_wrapper.h",
41 "audio_decoder_alsa.cc", 41 "audio_decoder_alsa.cc",
42 "audio_decoder_alsa.h", 42 "audio_decoder_alsa.h",
43 "filter_group.cc", 43 "filter_group.cc",
44 "filter_group.h", 44 "filter_group.h",
45 "media_pipeline_backend_alsa.cc", 45 "media_pipeline_backend_alsa.cc",
46 "media_pipeline_backend_alsa.h", 46 "media_pipeline_backend_alsa.h",
47 "post_processing_pipeline.cc",
48 "post_processing_pipeline.h",
49 "post_processing_pipeline_parser.cc",
50 "post_processing_pipeline_parser.h",
47 "stream_mixer_alsa.cc", 51 "stream_mixer_alsa.cc",
48 "stream_mixer_alsa.h", 52 "stream_mixer_alsa.h",
49 "stream_mixer_alsa_input.cc", 53 "stream_mixer_alsa_input.cc",
50 "stream_mixer_alsa_input.h", 54 "stream_mixer_alsa_input.h",
51 "stream_mixer_alsa_input_impl.cc", 55 "stream_mixer_alsa_input_impl.cc",
52 "stream_mixer_alsa_input_impl.h", 56 "stream_mixer_alsa_input_impl.h",
53 "volume_control.cc", 57 "volume_control.cc",
54 ] 58 ]
55 59
56 libs = [ "asound" ] 60 libs = [ "asound" ]
57 61
58 deps = [ 62 deps = [
59 ":alsa_features", 63 ":alsa_features",
60 ":audio_filter_includes",
61 ":slew_volume", 64 ":slew_volume",
62 "//base", 65 "//base",
63 "//chromecast/base", 66 "//chromecast/base",
64 "//chromecast/media/base", 67 "//chromecast/media/base",
65 "//chromecast/media/cma/backend:null", 68 "//chromecast/media/cma/backend:null",
66 "//chromecast/media/cma/base", 69 "//chromecast/media/cma/base",
67 "//chromecast/media/cma/decoder", 70 "//chromecast/media/cma/decoder",
68 "//chromecast/public/media", 71 "//chromecast/public/media",
69 "//media", 72 "//media",
70 "//media:shared_memory_support", 73 "//media:shared_memory_support",
71 ] 74 ]
72
73 if (chromecast_branding != "google") {
74 deps += [ ":audio_filter_null" ]
75 } else {
76 deps += [ "//chromecast/internal/media/cma/backend/alsa:filter" ]
77 }
78 }
79
80 source_set("audio_filter_null") {
81 sources = [
82 "audio_filter_factory_default.cc",
83 ]
84
85 deps = [
86 ":audio_filter_includes",
87 ]
88 }
89
90 source_set("audio_filter_includes") {
91 sources = [
92 "audio_filter_factory.h",
93 "audio_filter_interface.h",
94 ]
95
96 deps = [
97 "//base",
98 "//media",
99 ]
100 } 75 }
101 76
102 source_set("slew_volume") { 77 source_set("slew_volume") {
103 sources = [ 78 sources = [
104 "slew_volume.cc", 79 "slew_volume.cc",
105 "slew_volume.h", 80 "slew_volume.h",
106 ] 81 ]
107 deps = [ 82 deps = [
108 "//base", 83 "//base",
109 "//media", 84 "//media:shared_memory_support",
kmackay 2017/03/24 22:15:54 //media is still needed for eg media/audio/audio_d
bshaya 2017/03/24 22:55:49 SlewVolume does not depend on audio_deivce_descrip
110 ] 85 ]
111 } 86 }
112 87
113 alsa_controls_volume = !enable_assistant 88 alsa_controls_volume = !enable_assistant
114 89
115 buildflag_header("alsa_features") { 90 buildflag_header("alsa_features") {
116 header = "alsa_features.h" 91 header = "alsa_features.h"
117 92
118 flags = [ 93 flags = [
119 "ALSA_MONOTONIC_RAW_TSTAMPS=$use_alsa_monotonic_raw_tstamps", 94 "ALSA_MONOTONIC_RAW_TSTAMPS=$use_alsa_monotonic_raw_tstamps",
(...skipping 29 matching lines...) Expand all
149 public_deps = [ 124 public_deps = [
150 ":alsa_cma_backend", 125 ":alsa_cma_backend",
151 ] 126 ]
152 127
153 deps = [ 128 deps = [
154 "//base", 129 "//base",
155 "//media", 130 "//media",
156 "//testing/gmock", 131 "//testing/gmock",
157 ] 132 ]
158 } 133 }
134
135 shared_library("libcast_governor") {
136 sources = [
137 "post_processors/governor_shlib.cc",
138 ]
139
140 deps = [
141 ":slew_volume",
142 "//base",
143 "//chromecast/base",
144 "//chromecast/public/media",
145 ]
146 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698