Methods Summary |
---|
public abstract javax.sound.midi.MidiDevice | getDevice(javax.sound.midi.MidiDevice$Info info)Obtains an instance of the device represented by the info object.
|
public abstract javax.sound.midi.MidiDevice$Info[] | getDeviceInfo()Obtains the set of info objects representing the device
or devices provided by this MidiDeviceProvider .
|
public boolean | isDeviceSupported(javax.sound.midi.MidiDevice$Info info)Indicates whether the device provider supports the device represented by
the specified device info object.
MidiDevice.Info infos[] = getDeviceInfo();
for(int i=0; i<infos.length; i++) {
if( info.equals( infos[i] ) ) {
return true;
}
}
return false;
|