|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 package javax.microedition.amms.control.audioeffect; |
|
18 |
|
19 import javax.microedition.amms.control.*; |
|
20 |
|
21 /** |
|
22 * Please refer to JSR 234 for more details. |
|
23 */ |
|
24 |
|
25 public interface EqualizerControl |
|
26 extends EffectControl |
|
27 { |
|
28 |
|
29 public final int UNDEFINED = -1004; |
|
30 |
|
31 |
|
32 /** |
|
33 * Please refer to JSR 234 for more details. |
|
34 */ |
|
35 int getMinBandLevel(); |
|
36 |
|
37 /** |
|
38 * Please refer to JSR 234 for more details. |
|
39 */ |
|
40 int getMaxBandLevel(); |
|
41 |
|
42 /** |
|
43 * Please refer to JSR 234 for more details. |
|
44 */ |
|
45 void setBandLevel(int level, int band) throws IllegalArgumentException; |
|
46 |
|
47 /** |
|
48 * Please refer to JSR 234 for more details. |
|
49 */ |
|
50 int getBandLevel(int band) throws IllegalArgumentException; |
|
51 |
|
52 /** |
|
53 * Please refer to JSR 234 for more details. |
|
54 */ |
|
55 int getNumberOfBands(); |
|
56 |
|
57 /** |
|
58 * Please refer to JSR 234 for more details. |
|
59 */ |
|
60 int getCenterFreq(int band) throws IllegalArgumentException; |
|
61 |
|
62 /** |
|
63 * Please refer to JSR 234 for more details. |
|
64 */ |
|
65 int getBand(int frequency); |
|
66 |
|
67 /** |
|
68 * Please refer to JSR 234 for more details. |
|
69 */ |
|
70 int setBass(int level) throws IllegalArgumentException; |
|
71 |
|
72 /** |
|
73 * Please refer to JSR 234 for more details. |
|
74 */ |
|
75 int setTreble(int level) throws IllegalArgumentException; |
|
76 |
|
77 /** |
|
78 * Please refer to JSR 234 for more details. |
|
79 */ |
|
80 int getBass(); |
|
81 |
|
82 /** |
|
83 * Please refer to JSR 234 for more details. |
|
84 */ |
|
85 int getTreble(); |
|
86 |
|
87 } |