FileDocCategorySizeDatePackage
DirectMIDI.javaAPI DocphoneME MR2 API (J2ME)1804Wed May 02 16:47:10 BST 2007com.sun.mmedia

DirectMIDI

public final class DirectMIDI extends DirectPlayer
Interactive MIDI Player it implements MIDIControl

Fields Summary
private DirectMIDIControl
midiCtrl
Constructors Summary
public DirectMIDI()
It does not need data source

        hasDataSource = false;
    
Methods Summary
protected ControldoGetControl(java.lang.String type)

        Control c = super.doGetControl(type);
        if (c != null) return c;

        if (type.equals("javax.microedition.media.control.MIDIControl")) {
            if (midiCtrl == null) {
	        midiCtrl = new DirectMIDIControl(this);
            }
            return (Control)midiCtrl;
        }

        return null;