|
1.0: Final Release | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.microedition.amms.GlobalManager
The GlobalManager
handles the creation of
EffectModule
s, SoundSource3D
s and MediaProcessor
s.
Furthermore, a Spectator
can be get from the GlobalManager
.
GlobalManager
has similar methods as
Controllable
has.
It is supposed that
implementations mostly return different subclasses of
EffectControl
. These effects will be treated as
global effects concerning all Player
s.
Method Summary | |
static EffectModule |
createEffectModule()
Creates an EffectModule . |
static MediaProcessor |
createMediaProcessor(java.lang.String inputType)
Creates a MediaProcessor object. |
static SoundSource3D |
createSoundSource3D()
Creates a SoundSource3D . |
static javax.microedition.media.Control |
getControl(java.lang.String controlType)
Obtain the object that implements the specified Control interface. |
static javax.microedition.media.Control[] |
getControls()
Obtain the collection of Control s
from the GlobalManager . |
static Spectator |
getSpectator()
Gets the Spectator , which represents the listener
in the virtual acoustical space. |
static java.lang.String[] |
getSupportedMediaProcessorInputTypes()
Gets the supported MediaProcessor input content types. |
static java.lang.String[] |
getSupportedSoundSource3DPlayerTypes()
Gets the supported player content types that can be added to a SoundSource3D . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static javax.microedition.media.Control[] getControls()
Control
s
from the GlobalManager
.
Since the GlobalManager
can implement multiple
Control
interfaces, it is necessary
to check each object against different Control
types. For example:
Control cs[];
cs = GlobalManager.getControls();
for (int i = 0; i < cs.length; i++) {
if (cs[i] instanceof ControlTypeA)
doSomethingA();
if (cs[i] instanceof ControlTypeB)
doSomethingB();
// etc.
}
The list of Control
objects returned
will not contain any duplicates and the list will not
change over time.
If no Control
is supported, a zero length
array is returned.
Control
objectspublic static javax.microedition.media.Control getControl(java.lang.String controlType)
Control
interface.
If the specified Control
interface is not supported,
then null
is returned.
controlType
- the class name of the Control
.
The class name
should be given either as the fully-qualified name of the class;
or if the package of the class is not given, the package
javax.microedition.media.control
is assumed.
null
java.lang.IllegalArgumentException
- if controlType
is null
public static EffectModule createEffectModule() throws javax.microedition.media.MediaException
EffectModule
.
EffectModule
object that may be used to group Player
s
javax.microedition.media.MediaException
- if creation of EffectModule
is not supportedpublic static SoundSource3D createSoundSource3D() throws javax.microedition.media.MediaException
SoundSource3D
.
SoundSource3D
object that represents
a virtual sound source and that may be used to group
Player
s
javax.microedition.media.MediaException
- if creation of SoundSource3D
s
is not supportedgetSupportedSoundSource3DPlayerTypes()
public static java.lang.String[] getSupportedSoundSource3DPlayerTypes()
SoundSource3D
.
AudioFormatControl
specifies constants for content types commonly used with
SoundSource3D
.
Player
s supported by SoundSource3D
(e.g. "audio/midi") and of device and capture locators that can
be used to create Player
s supported by
SoundSource3D
(e.g. "capture://radio")public static Spectator getSpectator() throws javax.microedition.media.MediaException
Spectator
, which represents the listener
in the virtual acoustical space.
Spectator
, which represents the listener
in the virtual acoustical space
javax.microedition.media.MediaException
- if the device does not support Spectatorpublic static MediaProcessor createMediaProcessor(java.lang.String inputType) throws javax.microedition.media.MediaException
MediaProcessor
object. The input content type
is passed
as a MIME type as specified in javax.microedition.media.Manager.
FormatControl
,
ContainerFormatControl
,
VideoFormatControl
,
AudioFormatControl
and ImageFormatControl
specify
constants for a set of commonly used content types.
The supported input content types can be obtained by calling
getSupportedMediaProcessorInputTypes()
.
MediaProcessor
to process Image
s must be created by
using input type "image/raw
".
inputType
- the content type of the source data to be processed
MediaProcessor
javax.microedition.media.MediaException
- if a MediaProcessor
could
not be created for the given content typegetSupportedMediaProcessorInputTypes()
public static java.lang.String[] getSupportedMediaProcessorInputTypes()
MediaProcessor
input content types.
FormatControl
,
ContainerFormatControl
,
VideoFormatControl
,
AudioFormatControl
and ImageFormatControl
specify
constants for a set of commonly used content types.
|
1.0: Final Release | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |