|
1 /* |
|
2 * Copyright (c) 2002-2007 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: Please refer JSR 135 for more details. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 package javax.microedition.media.control; |
|
20 |
|
21 import javax.microedition.media.MediaException; |
|
22 |
|
23 public interface MIDIControl extends javax.microedition.media.Control |
|
24 { |
|
25 int NOTE_ON = 0x90; // 144 |
|
26 |
|
27 int CONTROL_CHANGE = 0xB0; // 176 |
|
28 |
|
29 boolean isBankQuerySupported(); |
|
30 |
|
31 int[] getProgram(int aChannel) |
|
32 throws MediaException; |
|
33 |
|
34 int getChannelVolume(int aChannel); |
|
35 |
|
36 void setProgram(int aChannel, int aBank, int aProgram); |
|
37 |
|
38 void setChannelVolume(int aChannel, int aVolume); |
|
39 |
|
40 int[] getBankList(boolean aCustom) |
|
41 throws MediaException; |
|
42 |
|
43 int[] getProgramList(int aBank) |
|
44 throws MediaException; |
|
45 |
|
46 String getProgramName(int aBank, int aProg) |
|
47 throws MediaException; |
|
48 |
|
49 String getKeyName(int aBank, int aProg, int aKey) |
|
50 throws MediaException; |
|
51 |
|
52 void shortMidiEvent(int aType, int aData1, int aData2); |
|
53 |
|
54 int longMidiEvent(byte[] aData, int aOffset, int aLength); |
|
55 } |