summaryrefslogtreecommitdiffstats
path: root/modules/audio_remote_submix/Android.mk
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2012-08-16 13:56:03 -0700
committerJean-Michel Trivi <jmtrivi@google.com>2012-09-06 18:33:04 -0700
commit88b79cb001d1c733275c7cad490c32b143f78860 (patch)
treebc667d880b18612dd8021a4702c3ce9fb8b3978b /modules/audio_remote_submix/Android.mk
parent3f014b988ea901ccc249d05ab11bcfd6010878d7 (diff)
downloadhardware_libhardware-88b79cb001d1c733275c7cad490c32b143f78860.zip
hardware_libhardware-88b79cb001d1c733275c7cad490c32b143f78860.tar.gz
hardware_libhardware-88b79cb001d1c733275c7cad490c32b143f78860.tar.bz2
Add audio module for remote submix
New definitions of audio devices for remote submix: one representing a sink for writing the audio buffers that won't be played directly locally, another representing the audio source that can be read from to obtain the audio mix. New audio hardware module encapsulating the submix loop functionality. Create a Pipe to serve as non-blocking audio ring buffer between the output device (the sink) and the input device (the source). Change-Id: I527f4721a69ced0430a99ebba3b4db7d419f2bb2
Diffstat (limited to 'modules/audio_remote_submix/Android.mk')
-rw-r--r--modules/audio_remote_submix/Android.mk29
1 files changed, 29 insertions, 0 deletions
diff --git a/modules/audio_remote_submix/Android.mk b/modules/audio_remote_submix/Android.mk
new file mode 100644
index 0000000..735215e
--- /dev/null
+++ b/modules/audio_remote_submix/Android.mk
@@ -0,0 +1,29 @@
+# Copyright (C) 2012 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := audio.r_submix.default
+LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
+LOCAL_SRC_FILES := \
+ audio_hw.cpp
+LOCAL_C_INCLUDES += \
+ frameworks/av/include/ \
+ frameworks/native/include/
+LOCAL_SHARED_LIBRARIES := liblog libcutils libutils libnbaio
+LOCAL_MODULE_TAGS := optional
+include $(BUILD_SHARED_LIBRARY)
+