blob: 2131b55113e5f4d877e935a75270f158654336ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
/*
* Copyright (C) 2010-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.
*/
package org.cyanogenmod.audiofx;
/**
* OpenSL ES constants class
*/
public final class OpenSLESConstants {
private OpenSLESConstants() {
// Empty constructor
}
/**
* Minimum volume level in millibel (mb).
*/
public static final short SL_MILLIBEL_MIN = -9600;
/**
* This value is used when equalizer setting is not defined.
*/
public static final short SL_EQUALIZER_UNDEFINED = (short) 0xFFFF;
/**
* The minimum bass boost strength in o/oo.
*/
public static final short BASSBOOST_MIN_STRENGTH = 0;
/**
* The maximum bass boost strength in o/oo.
*/
public static final short BASSBOOST_MAX_STRENGTH = 1000;
/**
* The minimum reverb room level in mb.
*/
public static final short REVERB_MIN_ROOM_LEVEL = SL_MILLIBEL_MIN;
/**
* The maximum reverb room level in mb.
*/
public static final short REVERB_MAX_ROOM_LEVEL = 0;
/**
* The minimum reverb room HF level in mb.
*/
public static final short REVERB_MIN_ROOM_HF_LEVEL = SL_MILLIBEL_MIN;
/**
* The maximum reverb room HF level in mb.
*/
public static final short REVERB_MAX_ROOM_HF_LEVEL = 0;
/**
* The minimum reverb decay time in ms.
*/
public static final short REVERB_MIN_DECAY_TIME = 100;
/**
* The maximum reverb decay time in ms.
*/
// XXX: OpenSL ES is normally 20000 but can only support 7000 for now
public static final short REVERB_MAX_DECAY_TIME = 7000;
/**
* The minimum reverb decay HF ratio in o/oo.
*/
public static final short REVERB_MIN_DECAY_HF_RATIO = 100;
/**
* The maximum reverb decay HF ratio in o/oo.
*/
public static final short REVERB_MAX_DECAY_HF_RATIO = 2000;
/**
* The minimum reverb level in mb.
*/
public static final short REVERB_MIN_REVERB_LEVEL = SL_MILLIBEL_MIN;
/**
* The maximum reverb level in mb.
*/
public static final short REVERB_MAX_REVERB_LEVEL = 2000;
/**
* The minimum reverb diffusion in o/oo.
*/
public static final short REVERB_MIN_DIFFUSION = 0;
/**
* The maximum reverb diffusion in o/oo.
*/
public static final short REVERB_MAX_DIFFUSION = 1000;
/**
* The minimum reverb density in o/oo.
*/
public static final short REVERB_MIN_DENSITY = 0;
/**
* The maximum reverb density in o/oo.
*/
public static final short REVERB_MAX_DENSITY = 1000;
/**
* The minimum virtualizer strength in o/oo.
*/
public static final short VIRTUALIZER_MIN_STRENGTH = 0;
/**
* The maximum virtualizer strength in o/oo.
*/
public static final short VIRTUALIZER_MAX_STRENGTH = 1000;
/**
* The minimum volume effect level in millibel (mb).
*/
public static final short VOLUME_MIN_LEVEL = SL_MILLIBEL_MIN;
/**
* The minimum volume stereo position in o/oo.
*/
public static final short VOLUME_MIN_STEREO_POSITION = -1000;
/**
* The maximum volume stereo position in o/oo.
*/
public static final short VOLUME_MAX_STEREO_POSITION = 1000;
}
|