FileDocCategorySizeDatePackage
ToneControl.javaAPI DocphoneME MR2 API (J2ME)3147Wed May 02 18:00:00 BST 2007javax.microedition.media.control

ToneControl

public interface ToneControl implements javax.microedition.media.Control
This class is defined by the JSR-118 specification MIDP 2, Version 2.1.

Fields Summary
byte
VERSION
The VERSION attribute tag.

Value -2 is assigned to VERSION.

byte
TEMPO
The TEMPO event tag.

Value -3 is assigned to TEMPO.

byte
RESOLUTION
The RESOLUTION event tag.

Value -4 is assigned to RESOLUTION.

byte
BLOCK_START
Defines a starting point for a block.

Value -5 is assigned to BLOCK_START.

byte
BLOCK_END
Defines an ending point for a block.

Value -6 is assigned to BLOCK_END.

byte
PLAY_BLOCK
Play a defined block.

Value -7 is assigned to PLAY_BLOCK.

byte
SET_VOLUME
The SET_VOLUME event tag.

Value -8 is assigned to SET_VOLUME.

byte
REPEAT
The REPEAT event tag.

Value -9 is assigned to REPEAT.

byte
C4
Middle C.

Value 60 is assigned to C4.

byte
SILENCE
Silence.

Value -1 is assigned to SILENCE.

Constructors Summary
Methods Summary
public voidsetSequence(byte[] sequence)
Sets the tone sequence.

param
sequence The sequence to set.
exception
IllegalArgumentException Thrown if the sequence is null or invalid.
exception
IllegalStateException Thrown if the Player that this control belongs to is in the PREFETCHED or STARTED state.