javax.sound.sampled.spi
abstract public class: MixerProvider [javadoc |
source]
java.lang.Object
javax.sound.sampled.spi.MixerProvider
A provider or factory for a particular mixer type.
This mechanism allows the implementation to determine
how resources are managed in creation / management of
a mixer.
- author:
Kara - Kytle
- since:
1.3 -
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from javax.sound.sampled.spi.MixerProvider Detail: |
abstract public Mixer getMixer(Mixer.Info info)
Obtains an instance of the mixer represented by the info object. |
abstract public Mixer.Info[] getMixerInfo()
Obtains the set of info objects representing the mixer
or mixers provided by this MixerProvider. |
public boolean isMixerSupported(Mixer.Info info) {
Mixer.Info infos[] = getMixerInfo();
for(int i=0; i< infos.length; i++){
if( info.equals( infos[i] ) ) {
return true;
}
}
return false;
}
Indicates whether the mixer provider supports the mixer represented by
the specified mixer info object. |