From 9b1407fd593c8e939488936a93e4af1b4a68ea6e Mon Sep 17 00:00:00 2001
From: Guru Nagarajan See the implementation for the Galaxy Nexus at The default pre-processing effects that are applied for each The default pre-processing effects that are applied for each Warning: For the hardware/libhardware/include/hardware/audio_effect.h
- 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.
device/samsung/tuna/audio
for an example.
-AudioSource
is
+AudioSource
are
specified in the /system/etc/audio_effects.conf
file. To specify
your own default effects for every AudioSource
, create a /system/vendor/etc/audio_effects.conf
file
and specify any pre-processing effects that you need to turn on. For an example,
-see the implementation for the Nexus 10 in device/samsung/manta/audio_effects.conf
+see the implementation for the Nexus 10 in device/samsung/manta/audio_effects.conf
VOICE_RECOGNITION
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 audio_effects.conf
file, it is ignored by all of the
-Google Apps that use voice recognition..
AudioSource
and Camcorder AudioSource
.
-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 AudioSource
.
-
+The following example enables pre-processing for the VoIP AudioSource
and Camcorder AudioSource
.
+By declaring the AudioSource
configuration in this manner, the framework will automatically request from the audio HAL the use of those effects
pre_processing {
@@ -325,13 +324,13 @@ with the exception of voice recognition (VOICE_RECOGNITION
).
Examples of tuning different effects for different sources are:
CAMCORDER
VOICE_COMMUNICATION
CAMCORDER
VOICE_COMMUNICATION