aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2013-05-13 09:26:52 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-05-13 09:26:52 -0700
commit361b25c2b03acc2e8a15dfca6badf97db1d462a7 (patch)
treeea2706aa5c7af4c22bca40fb02fa8963d00210ca
parent637f6d4709844c4a0434b0f32220d5dd4ce71c1f (diff)
parentf5799f54fd512350b476b2f1b1d07fb6761695c1 (diff)
downloadsource.android.com-361b25c2b03acc2e8a15dfca6badf97db1d462a7.tar.gz
am f5799f54: am 94722b68: Merge "Audio edits." into jb-mr1.1-docs
* commit 'f5799f54fd512350b476b2f1b1d07fb6761695c1': Audio edits.
-rw-r--r--src/devices/audio.jd27
1 files changed, 13 insertions, 14 deletions
diff --git a/src/devices/audio.jd b/src/devices/audio.jd
index a64b7b7e..9f6cfd09 100644
--- a/src/devices/audio.jd
+++ b/src/devices/audio.jd
@@ -116,7 +116,7 @@ page.title=Audio
</li>
<li>
<code>hardware/libhardware/include/hardware/audio_effect.h</code> - represents effects that can
- be applied to audio such as downmixing, echo, or noise supression.
+ be applied to audio such as downmixing, echo, or noise suppression.
</li>
</ul>
<p>See the implementation for the Galaxy Nexus at <code>device/samsung/tuna/audio</code> for an example.</p>
@@ -282,21 +282,20 @@ inputSource)</code>. In Android 4.2, the following sources are exposed to develo
<code><li>android.media.MediaRecorder.AudioSource.DEFAULT</li></code>
</ul>
-<p>The default pre-processing effects that are applied for each <code>AudioSource</code> is
+<p>The default pre-processing effects that are applied for each <code>AudioSource</code> are
specified in the <code>/system/etc/audio_effects.conf</code> file. To specify
your own default effects for every <code>AudioSource</code>, create a <code>/system/vendor/etc/audio_effects.conf</code> file
and specify any pre-processing effects that you need to turn on. For an example,
-see the implementation for the Nexus 10 in <code>device/samsung/manta/audio_effects.conf</code>
+see the implementation for the Nexus 10 in <code>device/samsung/manta/audio_effects.conf</code></p>
<p class="warning"><strong>Warning:</strong> For the <code>VOICE_RECOGNITION</code> use case, do not enable
-the noise supression pre-processing effect. This effect is already turned off by default, but if you enable
-it in your own <code>audio_effects.conf</code> file, it is ignored by all of the
-Google Apps that use voice recognition..</p>
+the noise suppression pre-processing effect. It should not be turned on by default when recording from this audio source,
+and you should not enable it in your own audio_effects.conf file. Turning on the effect by default will cause the device to fail
+the <a href="http://static.googleusercontent.com/external_content/untrusted_dlcp/source.android.com/en/us/compatibility/4.2/android-4.2-cdd.pdf"> compatibility requirement </a>
+regardless of whether is was on by default due to configuration file, or the audio HAL implementation's default behavior.</p>
-The following example enables pre-processing for the VOIP <code>AudioSource</code> and Camcorder <code>AudioSource</code>.
-If you turn these on, then the app developer does not need to explicilty request
-to use these effects when they are requesting the particular <code>AudioSource</code>.
-</p>
+<p>The following example enables pre-processing for the VoIP <code>AudioSource</code> and Camcorder <code>AudioSource</code>.
+By declaring the <code>AudioSource</code> configuration in this manner, the framework will automatically request from the audio HAL the use of those effects</p>
<pre>
pre_processing {
@@ -325,13 +324,13 @@ with the exception of voice recognition (<code>VOICE_RECOGNITION</code>).</p>
<li>Effects / pre-processing must be disabled by default</li>
</ul>
-For other sources, you could tune sources with the following effects:
+<p>Examples of tuning different effects for different sources are:</p>
<ul>
- <li>Noise Supressor
+ <li>Noise Suppressor
<ul>
- <li>Tunes for wind noise supressor for <code>CAMCORDER</code></li>
- <li>Tuned for stationary noise supressor for <code>VOICE_COMMUNICATION</code></li>
+ <li>Tuned for wind noise suppressor for <code>CAMCORDER</code></li>
+ <li>Tuned for stationary noise suppressor for <code>VOICE_COMMUNICATION</code></li>
</ul>
</li>
<li>Automatic Gain Control