Methods Summary |
---|
public PCMAudioOut | getAudioRenderer()Gets the audio renderer.
return null;
|
public ImageAccess | getImageAccessor()Gets the image accessor.
return null;
|
public java.lang.String[] | getSupportedMediaProcessorInputTypes()
return new String[0];
|
public java.lang.String[] | getSupportedProtocols(java.lang.String content_type)Gets the supportedProtocols attribute of the DefaultConfiguration object
return (content_type == null)
? dProtocols
: super.getSupportedProtocols(content_type);
|
public java.lang.String[] | getSupportedSoundSource3DPlayerTypes()
return new String[0];
|
public TonePlayer | getTonePlayer()Gets the tonePlayer attribute of the DefaultConfiguration object
return myTonePlayer;
|
public VideoRenderer | getVideoRenderer(javax.microedition.media.Player player, int sourceWidth, int sourceHeight)Gets the video renderer.
return null;
|
protected void | init()method that performs real initialization.
Called only from constructor.
Must be overwritten by derived classes
// Protocol handlers.
// Device handlers.
handlers.put(TONE_DEVICE_LOCATOR, "com.sun.mmedia.QSoundABBToneSequencePlayer");
// Content handlers.
// MIDI/Tone Sequence content ...
handlers.put(MIME_AUDIO_TONE, "com.sun.mmedia.QSoundABBToneSequencePlayer");
supportedProtocols.put(MIME_AUDIO_TONE, dProtocols);
// Mime types
mimeTypes.put("jts", MIME_AUDIO_TONE);
// for converting
mimeTypes.put("audio/tone", MIME_AUDIO_TONE);
// Create a Tone Player...
myTonePlayer = new QSoundTonePlayer();
/*
* The peer value is actually not used.
* The only purpose of this call is to request loading
* if QSoundHiddenManager class with invokation of
* QSoundHiddenManager clas static initializer.
* As the result QSound audio system will be initialized for MMAPI.
*/
int peer = QSoundHiddenManager.getGlobalPeer();
|