1c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent/*
2c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent * Copyright (C) 2010 The Android Open Source Project
3c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent *
4c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent * Licensed under the Apache License, Version 2.0 (the "License");
5c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent * you may not use this file except in compliance with the License.
6c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent * You may obtain a copy of the License at
7c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent *
8c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent *      http://www.apache.org/licenses/LICENSE-2.0
9c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent *
10c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent * Unless required by applicable law or agreed to in writing, software
11c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent * distributed under the License is distributed on an "AS IS" BASIS,
12c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent * See the License for the specific language governing permissions and
14c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent * limitations under the License.
15c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent */
16c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent
17c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent#ifndef ANDROID_EFFECTREVERB_H_
18c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent#define ANDROID_EFFECTREVERB_H_
19c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent
206d8b694d999e9be7d5dcc336535832a80fb6f61fEric Laurent#include <audio_effects/effect_environmentalreverb.h>
216d8b694d999e9be7d5dcc336535832a80fb6f61fEric Laurent#include <audio_effects/effect_presetreverb.h>
22c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent
23c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent#if __cplusplus
24c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurentextern "C" {
25c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent#endif
26c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent
27d918324d44aa48b3b064ea9b87d0c520c38f15a9Eric Laurent#define MAX_NUM_BANDS           5
28d918324d44aa48b3b064ea9b87d0c520c38f15a9Eric Laurent#define MAX_CALL_SIZE           256
29d918324d44aa48b3b064ea9b87d0c520c38f15a9Eric Laurent#define LVREV_MAX_T60           7000
30d918324d44aa48b3b064ea9b87d0c520c38f15a9Eric Laurent#define LVREV_MAX_REVERB_LEVEL  2000
31d918324d44aa48b3b064ea9b87d0c520c38f15a9Eric Laurent#define LVREV_MAX_FRAME_SIZE    2560
32d918324d44aa48b3b064ea9b87d0c520c38f15a9Eric Laurent#define LVREV_CUP_LOAD_ARM9E    470    // Expressed in 0.1 MIPS
33d918324d44aa48b3b064ea9b87d0c520c38f15a9Eric Laurent#define LVREV_MEM_USAGE         71+(LVREV_MAX_FRAME_SIZE>>7)     // Expressed in kB
34d918324d44aa48b3b064ea9b87d0c520c38f15a9Eric Laurent//#define LVM_PCM
35c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent
36c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurenttypedef struct _LPFPair_t
37c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent{
38c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent    int16_t Room_HF;
39c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent    int16_t LPF;
40c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent} LPFPair_t;
41c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent#if __cplusplus
42c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent}  // extern "C"
43c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent#endif
44c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent
45c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent
46c59c6fd7f859b4010d788db89b8d4d76bbb70e57Eric Laurent#endif /*ANDROID_EFFECTREVERB_H_*/
47