blob: a0e1ca0ea412d492645b487fd7d59303f6074f47 [file] [log] [blame]
Eric Laurent4d64e7d2011-07-05 11:20:26 -07001/*
2 * Copyright (C) 2011 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef ANDROID_EFFECT_AEC_H_
18#define ANDROID_EFFECT_AEC_H_
19
20#include <hardware/audio_effect.h>
21
22#if __cplusplus
23extern "C" {
24#endif
25
26// The AEC type UUID is not defined by OpenSL ES and has been generated from
27// http://www.itu.int/ITU-T/asn1/uuid.html
28static const effect_uuid_t FX_IID_AEC_ =
29 { 0x7b491460, 0x8d4d, 0x11e0, 0xbd61, { 0x00, 0x02, 0xa5, 0xd5, 0xc5, 0x1b } };
30const effect_uuid_t * const FX_IID_AEC = &FX_IID_AEC_;
31
32typedef enum
33{
34 AEC_PARAM_ECHO_DELAY, // echo delay in microseconds
35 AEC_PARAM_PROPERTIES
36} t_aec_params;
37
38//t_equalizer_settings groups all current aec settings for backup and restore.
39typedef struct s_aec_settings {
40 uint32_t echoDelay;
41} t_aec_settings;
42
43#if __cplusplus
44} // extern "C"
45#endif
46
47
48#endif /*ANDROID_EFFECT_AEC_H_*/