|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The ToneControl is the interface to enable playback of a simple, application-defined tone sequence. Use method setSequence() to set up array of tones and durations, and set up blocks in the sequence that can be repeated or looped.
Field Summary | |
static byte |
BLOCK_END
Defines an ending point for a block. |
static byte |
BLOCK_START
Defines a starting point for a block |
static byte |
C4
Middle C. |
static byte |
PLAY_BLOCK
Play a defined block. |
static byte |
REPEAT
The REPEAT event tag |
static byte |
RESOLUTION
The RESOLUTION event tag |
static byte |
SET_VOLUME
The SET_VOLUME event tag |
static byte |
SILENCE
Silence. |
static byte |
TEMPO
The TEMPO event tag |
static byte |
VERSION
The VERSION attribute tag |
Method Summary | |
void |
setSequence(byte[] sequence)
Sets the tone sequence. |
Field Detail |
public static final byte SILENCE
public static final byte VERSION
public static final byte TEMPO
public static final byte RESOLUTION
public static final byte BLOCK_START
public static final byte BLOCK_END
public static final byte PLAY_BLOCK
public static final byte SET_VOLUME
public static final byte REPEAT
public static final byte C4
Method Detail |
public void setSequence(byte[] sequence)
sequence
- The sequence to be set
IllegalArgumentException
- if the sequence is null or invalid
IllegalStateException
- if the Player that this control belongs to
is in the PREFETCHED or STARTED state.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |