APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.media.sound

public final Class PortMixerProvider

extends MixerProvider
Class Inheritance
Imports
javax.sound.sampled.Mixer, javax.sound.sampled.spi.MixerProvider

Port provider.
Author
Florian Bomers

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
PortMixerProvider.PortMixerInfo

Info class for PortMixers.

Field Summary

Modifier and TypeField and Description
private static PortMixer[]
devices

Set of all port input devices on the system.

private static PortMixerProvider.PortMixerInfo[]
infos

Set of info objects for all port input devices on the system.

Constructor Summary

AccessConstructor and Description
public
PortMixerProvider()

Required public no-arg constructor.

Method Summary

Modifier and TypeMethod and Description
private static Mixer
public Mixer
getMixer(Mixer.Info info)

Implements abstract javax.sound.sampled.spi.MixerProvider.getMixer.

Obtains an instance of the mixer represented by the info object.

public Mixer.Info[]
getMixerInfo()

Implements abstract javax.sound.sampled.spi.MixerProvider.getMixerInfo.

Obtains the set of info objects representing the mixer or mixers provided by this MixerProvider.

private static void
init()

private static native int
private static native PortMixerProvider.PortMixerInfo
nNewPortMixerInfo(int mixerIndex)

Inherited from javax.sound.sampled.spi.MixerProvider:
isMixerSupported

Field Detail

devicesback to summary
private static PortMixer[] devices

Set of all port input devices on the system.

infosback to summary
private static PortMixerProvider.PortMixerInfo[] infos

Set of info objects for all port input devices on the system.

Constructor Detail

PortMixerProviderback to summary
public PortMixerProvider()

Required public no-arg constructor.

Method Detail

getDeviceback to summary
private static Mixer getDevice(PortMixerProvider.PortMixerInfo info)
getMixerback to summary
public Mixer getMixer(Mixer.Info info)

Implements abstract javax.sound.sampled.spi.MixerProvider.getMixer.

Doc from javax.sound.sampled.spi.MixerProvider.getMixer.

Obtains an instance of the mixer represented by the info object. If null is passed, then the default mixer will be returned.

The full set of the mixer info objects that represent the mixers supported by this MixerProvider may be obtained through the getMixerInfo method. Use the isMixerSupported method to test whether this MixerProvider supports a particular mixer.

Annotations
@Override
getMixerInfoback to summary
public Mixer.Info[] getMixerInfo()

Implements abstract javax.sound.sampled.spi.MixerProvider.getMixerInfo.

Doc from javax.sound.sampled.spi.MixerProvider.getMixerInfo.

Obtains the set of info objects representing the mixer or mixers provided by this MixerProvider.

The isMixerSupported method returns true for all the info objects returned by this method. The corresponding mixer instances for the info objects are returned by the getMixer method.

Annotations
@Override
initback to summary
private static void init()
nGetNumDevicesback to summary
private static native int nGetNumDevices()
nNewPortMixerInfoback to summary
private static native PortMixerProvider.PortMixerInfo nNewPortMixerInfo(int mixerIndex)
com.sun.media.sound back to summary

pack-priv final Class PortMixerProvider.PortMixerInfo

extends Info
Class Inheritance

Info class for PortMixers. Adds an index value for making native references to a particular device. This constructor is called from native.

Field Summary

Modifier and TypeField and Description
private final int

Constructor Summary

AccessConstructor and Description
private
PortMixerInfo(int index, String name, String vendor, String description, String version)

Method Summary

Modifier and TypeMethod and Description
pack-priv int
Inherited from javax.sound.sampled.Mixer.Info:
equalsgetDescriptiongetNamegetVendorgetVersionhashCodetoString

Field Detail

indexback to summary
private final int index

Constructor Detail

PortMixerInfoback to summary
private PortMixerInfo(int index, String name, String vendor, String description, String version)

Method Detail

getIndexback to summary
pack-priv int getIndex()