|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Module
Module is a logical group of Players
and/or MIDI channels.
Adding or removing Players
or MIDI channels is not possible if any of the Players is in
PREFETCHED or STARTED state.
Typically, a Module object as such can not be fetched from anywhere;
the subinterfaces EffectModule and SoundSource3D are used instead.
EffectModule,
SoundSource3D| Method Summary | ||
|---|---|---|
void |
addMIDIChannel(Player player,
int channel)
Adds an individual MIDI channel of a MIDI Player to the module. |
|
void |
addPlayer(Player player)
Adds a Player to the module. |
|
void |
removeMIDIChannel(Player player,
int channel)
Removes a MIDI channel from the module. |
|
void |
removePlayer(Player player)
Removes a Player or all channels of a Player from the module. |
|
| Methods inherited from interface javax.microedition.media.Controllable |
|---|
getControl, getControls |
| Method Detail |
|---|
void addMIDIChannel(Player player,
int channel)
throws MediaException
Player to the module.
If the played MIDI file or MIDI stream contains information
that is contradictory
to what is specified via this Module the behavior
will be implementation specific.
player - the MIDI Player whose channel is to be addedchannel - the channel of the given Player to be added.
The range is 0-15
MediaException - if adding of channels is not supported
IllegalArgumentException - if the player is
not a MIDI player or the player is null
or if the channel or
the whole player is already part of the module
IllegalArgumentException - if channel > 15 or channel< 0
IllegalStateException - if some Player in the Module (or the player to be added) is in
PREFETCHED or STARTED state
void removeMIDIChannel(Player player,
int channel)
removePlayer.
player - the MIDI Player whose channel is to be removedchannel - the channel of the given MIDI Player to be removed
IllegalArgumentException - if the given channel is
not part of the Module or if the player is null
IllegalStateException - if some Player in the Module (including the player to be removed) is in
PREFETCHED or STARTED state
void addPlayer(Player player)
throws MediaException
Player to the module.
player - the Player to be added
IllegalArgumentException - if the player is null or
if the player or some channels of
the player already belong to the module
MediaException - if the player cannot be added.
(For example, if the implementation does not support adding
the same Player to multiple modules
or if the implementation does not support
the type of the Player.)
IllegalStateException - if some Player in the Module (or the player to be added) is in
PREFETCHED or STARTED statevoid removePlayer(Player player)
Player or all channels of a Player from the module.
player - the Player to be removed
IllegalArgumentException - if player is not part of the
module or if player is null
IllegalStateException - if some Player in the Module (including the player to be removed) is in
PREFETCHED or STARTED state
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal