blob: e3069d51e53bf2bdbb2341e7cfe30ce9d73bf3e9 [file] [log] [blame]
Eric Laurent135ad072010-05-21 06:05:13 -07001/*
2 * Copyright (C) 2010 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_EFFECTEQUALIZERAPI_H_
18#define ANDROID_EFFECTEQUALIZERAPI_H_
19
20#include <media/EffectApi.h>
21
22#if __cplusplus
23extern "C" {
24#endif
25
26//TODO replace by openSL ES include when available
27static const effect_uuid_t SL_IID_EQUALIZER_ = { 0x0bed4300, 0xddd6, 0x11db, 0x8f34, { 0x00, 0x02, 0xa5, 0xd5, 0xc5, 0x1b } };
28const effect_uuid_t * const SL_IID_EQUALIZER = &SL_IID_EQUALIZER_;
29
30/* enumerated parameters for Equalizer effect */
31typedef enum
32{
33 EQ_PARAM_NUM_BANDS, // Gets the number of frequency bands that the equalizer supports.
34 EQ_PARAM_LEVEL_RANGE, // Returns the minimum and maximum band levels supported.
35 EQ_PARAM_BAND_LEVEL, // Gets/Sets the gain set for the given equalizer band.
36 EQ_PARAM_CENTER_FREQ, // Gets the center frequency of the given band.
37 EQ_PARAM_BAND_FREQ_RANGE, // Gets the frequency range of the given frequency band.
38 EQ_PARAM_GET_BAND, // Gets the band that has the most effect on the given frequency.
39 EQ_PARAM_CUR_PRESET, // Gets/Sets the current preset.
40 EQ_PARAM_GET_NUM_OF_PRESETS, // Gets the total number of presets the equalizer supports.
41 EQ_PARAM_GET_PRESET_NAME // Gets the preset name based on the index.
42} t_equalizer_params;
43
44
45#if __cplusplus
46} // extern "C"
47#endif
48
49
50#endif /*ANDROID_EFFECTEQUALIZERAPI_H_*/