AI 144207: am: CL 144166 am: CL 144164 Adding droiddocs/javadocs usage to Pdk-docs to get correct style.
Original author: mritter Merged from: //branches/cupcake/... Original author: android-build Merged from: //branches/donutburger/... Automated import of CL 144207
This commit is contained in:
committed by
The Android Open Source Project
parent
7d8b5a10c8
commit
4ba021dfe8
56
pdk/docs/audio_sub_system.jd
Executable file
56
pdk/docs/audio_sub_system.jd
Executable file
@@ -0,0 +1,56 @@
|
||||
page.title=Audio
|
||||
pdk.version=1.0
|
||||
@jd:body
|
||||
|
||||
<a name="toc"/>
|
||||
<div style="padding:10px">
|
||||
<a href="#androidAudioSubSystemIntroduction">Introduction</a><br/>
|
||||
<a href="#androidAudioBuildingDriver">Building an Audio Library</a><br/>
|
||||
<a href="#androidAudioInterface">Interface</a><br/></div></font></div>
|
||||
|
||||
<a name="androidAudioSubSystemIntroduction"></a><h2>Introduction</h2>
|
||||
|
||||
<p>AudioHardwareInterface serves as the glue between proprietary audio drivers and the Android AudioFlinger service, the core audio service that handles all audio-related requests from applications.</p>
|
||||
<p><img src="android_audio_architecture.gif"></p>
|
||||
|
||||
Solid elements represent Android blocks and dashed elements represent partner-specific blocks.
|
||||
|
||||
|
||||
|
||||
<a name="androidAudioBuildingDriver"></a><h2>Building an Audio Library</h2>
|
||||
|
||||
<p>To implement an audio driver, create a shared library that implements the interface defined in <code>AudioHardwareInterface.h</code>. You must name your shared library <code>libaudio.so</code> so that it will get loaded from <code>/system/lib</code> at runtime. Place libaudio sources and <code>Android.mk</code> in <code>partner/acme/chipset_or_board/libaudio/</code>.</p>
|
||||
<p>The following stub <code>Android.mk</code> file ensures that <code>libaudio</code> compiles and links to the appropriate libraries:</p>
|
||||
|
||||
<pre class="prettify">
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := libaudio
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libcutils \
|
||||
libutils \
|
||||
libmedia \
|
||||
libhardware
|
||||
|
||||
LOCAL_SRC_FILES += MyAudioHardware.cpp
|
||||
|
||||
LOCAL_CFLAGS +=
|
||||
|
||||
LOCAL_C_INCLUDES +=
|
||||
|
||||
LOCAL_STATIC_LIBRARIES += libaudiointerface
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
</pre>
|
||||
|
||||
|
||||
<a name="androidAudioInterface"></a><h2>Interface</h2>
|
||||
|
||||
|
||||
|
||||
<p class="note"><strong>Note</strong>: This document relies on some Doxygen-generated content that appears in an iFrame below. To return to the Doxygen default content for this page, <a href="audio_sub_system.html">click here</a>.</p>
|
||||
|
||||
|
||||
<iframe onLoad="resizeHeight();" src="_audio_hardware_interface_8h.html" scrolling="no" scroll="no" id="doxygen" marginwidth="0" marginheight="0" frameborder="0" style="width:100%;"></iframe>
|
||||
Reference in New Issue
Block a user