summaryrefslogtreecommitdiffstats
path: root/audio_effects/include/audio_effects/effect_aec.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2011-07-05 11:20:26 -0700
committerEric Laurent <elaurent@google.com>2011-07-11 12:01:33 -0700
commit4d64e7d0abff40010796dbf199f6bc935690afa1 (patch)
treec8339f4e74387b0d02cba1d05f1a014920eacf76 /audio_effects/include/audio_effects/effect_aec.h
parent5bed00f16d39274473b90da20a1d0017a0626ab1 (diff)
downloadandroid_system_media-4d64e7d0abff40010796dbf199f6bc935690afa1.tar.gz
android_system_media-4d64e7d0abff40010796dbf199f6bc935690afa1.tar.bz2
android_system_media-4d64e7d0abff40010796dbf199f6bc935690afa1.zip
Added audio pre processing headers
Added headers for AGC, AEC and NS audio pre processing APIs. Change-Id: Ie0053e2e6276b0d97dc76450bfef62b6eff8f3dd
Diffstat (limited to 'audio_effects/include/audio_effects/effect_aec.h')
-rw-r--r--audio_effects/include/audio_effects/effect_aec.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/audio_effects/include/audio_effects/effect_aec.h b/audio_effects/include/audio_effects/effect_aec.h
new file mode 100644
index 00000000..a0e1ca0e
--- /dev/null
+++ b/audio_effects/include/audio_effects/effect_aec.h
@@ -0,0 +1,48 @@
+/*
+ * Copyright (C) 2011 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.
+ */
+
+#ifndef ANDROID_EFFECT_AEC_H_
+#define ANDROID_EFFECT_AEC_H_
+
+#include <hardware/audio_effect.h>
+
+#if __cplusplus
+extern "C" {
+#endif
+
+// The AEC type UUID is not defined by OpenSL ES and has been generated from
+// http://www.itu.int/ITU-T/asn1/uuid.html
+static const effect_uuid_t FX_IID_AEC_ =
+ { 0x7b491460, 0x8d4d, 0x11e0, 0xbd61, { 0x00, 0x02, 0xa5, 0xd5, 0xc5, 0x1b } };
+const effect_uuid_t * const FX_IID_AEC = &FX_IID_AEC_;
+
+typedef enum
+{
+ AEC_PARAM_ECHO_DELAY, // echo delay in microseconds
+ AEC_PARAM_PROPERTIES
+} t_aec_params;
+
+//t_equalizer_settings groups all current aec settings for backup and restore.
+typedef struct s_aec_settings {
+ uint32_t echoDelay;
+} t_aec_settings;
+
+#if __cplusplus
+} // extern "C"
+#endif
+
+
+#endif /*ANDROID_EFFECT_AEC_H_*/