1 /*
2  * Copyright (C) 2016 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_LOUDNESS_ENHANCER_CORE_H_
18 #define ANDROID_EFFECT_LOUDNESS_ENHANCER_CORE_H_
19 
20 #include <system/audio_effect.h>
21 
22 #if __cplusplus
23 extern "C" {
24 #endif
25 
26 // this effect is not defined in OpenSL ES as one of the standard effects
27 static const effect_uuid_t FX_IID_LOUDNESS_ENHANCER_ =
28         {0xfe3199be, 0xaed0, 0x413f, 0x87bb, {0x11, 0x26, 0x0e, 0xb6, 0x3c, 0xf1}};
29 const effect_uuid_t * const FX_IID_LOUDNESS_ENHANCER = &FX_IID_LOUDNESS_ENHANCER_;
30 
31 #define LOUDNESS_ENHANCER_DEFAULT_TARGET_GAIN_MB 0 // mB
32 
33 // enumerated parameters for DRC effect
34 // to keep in sync with frameworks/base/media/java/android/media/audiofx/LoudnessEnhancer.java
35 typedef enum
36 {
37     LOUDNESS_ENHANCER_PARAM_TARGET_GAIN_MB = 0,// target gain expressed in mB
38 } t_level_monitor_params;
39 
40 #if __cplusplus
41 }  // extern "C"
42 #endif
43 
44 
45 #endif /*ANDROID_EFFECT_LOUDNESS_ENHANCER_CORE_H_*/
46