javax.sound.sampled.spi
Class MixerProvider

java.lang.Object
  extended by javax.sound.sampled.spi.MixerProvider

public abstract class MixerProvider
extends Object

This abstract class defines an interface to mixer providers. Concrete subclasses will implement the methods in this class.

Since:
1.3

Constructor Summary
MixerProvider()
          Create a new mixer provider.
 
Method Summary
abstract  Mixer getMixer(Mixer.Info info)
          Return a mixer that matches the given info object.
abstract  Mixer.Info[] getMixerInfo()
          Return an array of info objects describing all the mixers provided by this provider.
 boolean isMixerSupported(Mixer.Info info)
          Return true if a mixer matching the provided description is supported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MixerProvider

public MixerProvider()
Create a new mixer provider.

Method Detail

getMixer

public abstract Mixer getMixer(Mixer.Info info)
Return a mixer that matches the given info object.

Parameters:
info - description of the mixer to match
Returns:
the mixer
Throws:
IllegalArgumentException - if no mixer matches the description

getMixerInfo

public abstract Mixer.Info[] getMixerInfo()
Return an array of info objects describing all the mixers provided by this provider.


isMixerSupported

public boolean isMixerSupported(Mixer.Info info)
Return true if a mixer matching the provided description is supported.

Parameters:
info - description of the mixer to match
Returns:
true if it is supported by this provider