|
1.0: Final Release | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Module
is a logical group of Player
s
and/or MIDI channels.
Adding or removing Player
s
or MIDI channels is not possible if any of the Player
s 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(javax.microedition.media.Player player,
int channel)
Adds an individual MIDI channel of a MIDI Player
to the module. |
void |
addPlayer(javax.microedition.media.Player player)
Adds a Player to the module. |
void |
removeMIDIChannel(javax.microedition.media.Player player,
int channel)
Removes a MIDI channel from the module. |
void |
removePlayer(javax.microedition.media.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 |
public void addMIDIChannel(javax.microedition.media.Player player, int channel) throws javax.microedition.media.MediaException
Adds an individual MIDI channel of a MIDI 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
javax.microedition.media.MediaException
- if adding of channels is not supported
java.lang.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
java.lang.IllegalArgumentException
- if channel
> 15 or channel
< 0
java.lang.IllegalStateException
- if some Player
in the Module
(or the player to be added) is in
PREFETCHED
or STARTED
statepublic void removeMIDIChannel(javax.microedition.media.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
java.lang.IllegalArgumentException
- if the given channel
is
not part of the Module
or if the player
is null
java.lang.IllegalStateException
- if some Player
in the Module
(including the player to be removed) is in
PREFETCHED
or STARTED
statepublic void addPlayer(javax.microedition.media.Player player) throws javax.microedition.media.MediaException
Player
to the module.
player
- the Player
to be added
java.lang.IllegalArgumentException
- if the player
is null or
if the player
or some channels of
the player
already belong to the module
javax.microedition.media.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
.)
java.lang.IllegalStateException
- if some Player
in the Module
(or the player to be added) is in
PREFETCHED
or STARTED
statepublic void removePlayer(javax.microedition.media.Player player)
Player
or all channels of a Player
from the module.
player
- the Player
to be removed
java.lang.IllegalArgumentException
- if player
is not part of the
module or if player
is null
java.lang.IllegalStateException
- if some Player
in the Module
(including the player to be removed) is in
PREFETCHED
or STARTED
state
|
1.0: Final Release | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |