public final class SampledAudioUtilities
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.Vector<javax.sound.sampled.Mixer.Info> |
getMixerInfo(boolean supportsPlayback,
boolean supportsRecording)
Creates a list of Mixer.Info objects.
|
static javax.sound.sampled.SourceDataLine |
getOpenLineFromConfiguredMixer(javax.sound.sampled.AudioFormat format)
Tries to open a line to the configured mixer.
|
public static java.util.Vector<javax.sound.sampled.Mixer.Info> getMixerInfo(boolean supportsPlayback, boolean supportsRecording)
supportsPlayback
- Should the mixer support audio play back?supportsRecording
- Should the mixer support audio recording?public static javax.sound.sampled.SourceDataLine getOpenLineFromConfiguredMixer(javax.sound.sampled.AudioFormat format) throws javax.sound.sampled.LineUnavailableException
format
- the format to open the line for.javax.sound.sampled.LineUnavailableException
- if the configured mixer and the default mixer are not
available.