cc_library { name: "libaaudio", local_include_dirs: [ "binding", "client", "core", "fifo", "flowgraph", "legacy", "utility", ], export_include_dirs: ["."], header_libs: ["libaaudio_headers"], export_header_lib_headers: ["libaaudio_headers"], srcs: [ "core/AudioStream.cpp", "core/AudioStreamBuilder.cpp", "core/AAudioAudio.cpp", "core/AAudioStreamParameters.cpp", "legacy/AudioStreamLegacy.cpp", "legacy/AudioStreamRecord.cpp", "legacy/AudioStreamTrack.cpp", "utility/AAudioUtilities.cpp", "utility/FixedBlockAdapter.cpp", "utility/FixedBlockReader.cpp", "utility/FixedBlockWriter.cpp", "fifo/FifoBuffer.cpp", "fifo/FifoControllerBase.cpp", "client/AAudioFlowGraph.cpp", "client/AudioEndpoint.cpp", "client/AudioStreamInternal.cpp", "client/AudioStreamInternalCapture.cpp", "client/AudioStreamInternalPlay.cpp", "client/IsochronousClockModel.cpp", "binding/AudioEndpointParcelable.cpp", "binding/AAudioBinderClient.cpp", "binding/AAudioStreamRequest.cpp", "binding/AAudioStreamConfiguration.cpp", "binding/IAAudioClient.cpp", "binding/IAAudioService.cpp", "binding/RingBufferParcelable.cpp", "binding/SharedMemoryParcelable.cpp", "binding/SharedRegionParcelable.cpp", "flowgraph/AudioProcessorBase.cpp", "flowgraph/ClipToRange.cpp", "flowgraph/MonoToMultiConverter.cpp", "flowgraph/RampLinear.cpp", "flowgraph/SinkFloat.cpp", "flowgraph/SinkI16.cpp", "flowgraph/SinkI24.cpp", "flowgraph/SourceFloat.cpp", "flowgraph/SourceI16.cpp", "flowgraph/SourceI24.cpp", ], cflags: [ "-Wno-unused-parameter", "-Wall", "-Werror", // By default, all symbols are hidden. // "-fvisibility=hidden", // AAUDIO_API is used to explicitly export a function or a variable as a visible symbol. "-DAAUDIO_API=__attribute__((visibility(\"default\")))", ], shared_libs: [ "libaudioclient", "libaudioutils", "liblog", "libcutils", "libutils", "libbinder", "libaudiomanager", ], }