FileDocCategorySizeDatePackage
CougarQSoundAbbConfig.javaAPI DocphoneME MR2 API (J2ME)4193Wed May 02 18:00:46 BST 2007com.sun.mmedia

CougarQSoundAbbConfig

public class CougarQSoundAbbConfig extends DefaultConfiguration
The configuration module for MIDP with QSound audio engine for MIDP subset of JSR135.
created
April 05, 2006

Fields Summary
private static TonePlayer
myTonePlayer
Handle for the Tone Player...
Constructors Summary
public CougarQSoundAbbConfig()
Constructor for the Configuration object

        super();
    
Methods Summary
public PCMAudioOutgetAudioRenderer()
Gets the audio renderer.

return
The audio renderer

        return null;
    
public ImageAccessgetImageAccessor()
Gets the image accessor.

return
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

param
content_type Description of the Parameter
return
The supportedProtocols value

        return (content_type == null)
            ? dProtocols
            : super.getSupportedProtocols(content_type);
    
public java.lang.String[]getSupportedSoundSource3DPlayerTypes()

        return new String[0];
    
public TonePlayergetTonePlayer()
Gets the tonePlayer attribute of the DefaultConfiguration object

return
The tonePlayer value

        return myTonePlayer;
    
public VideoRenderergetVideoRenderer(javax.microedition.media.Player player, int sourceWidth, int sourceHeight)
Gets the video renderer.

return
The video renderer

        return null;
    
protected voidinit()
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();