javax.sound.sampled.spi

Class 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 MixergetMixer(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.
booleanisMixerSupported(Mixer.Info info)
Return true if a mixer matching the provided description is supported.

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