| Package | Description |
|---|---|
| javax.sound.sampled |
Provides interfaces and classes for capture, processing, and playback of sampled audio data.
|
| Modifier and Type | Method and Description |
|---|---|
static Clip |
AudioSystem.getClip()
Obtains a clip that can be used for playing back an audio file or an audio stream.
|
static Clip |
AudioSystem.getClip(Mixer
Obtains a clip from the specified mixer that can be used for playing back an audio file or an audio stream.
|
static Line |
AudioSystem.getLine(Line
Obtains a line that matches the description in the specified
Line.Info object.
|
Line |
Mixer.getLine(Line
Obtains a line that is available for use and that matches the description in the specified
Line.Info object.
|
static SourceDataLine |
AudioSystem.getSourceDataLine(AudioFormat
Obtains a source data line that can be used for playing back audio data in the format specified by the
AudioFormat object.
|
static SourceDataLine |
AudioSystem.getSourceDataLine(AudioFormat
Obtains a source data line that can be used for playing back audio data in the format specified by the
AudioFormat object, provided by the mixer specified by the
Mixer.Info object.
|
static TargetDataLine |
AudioSystem.getTargetDataLine(AudioFormat
Obtains a target data line that can be used for recording audio data in the format specified by the
AudioFormat object.
|
static TargetDataLine |
AudioSystem.getTargetDataLine(AudioFormat
Obtains a target data line that can be used for recording audio data in the format specified by the
AudioFormat object, provided by the mixer specified by the
Mixer.Info object.
|
void |
Line.open()
Opens the line, indicating that it should acquire any required system resources and become operational.
|
void |
TargetDataLine.open(AudioFormat
Opens the line with the specified format, causing the line to acquire any required system resources and become operational.
|
void |
SourceDataLine.open(AudioFormat
Opens the line with the specified format, causing the line to acquire any required system resources and become operational.
|
void |
Clip.open(AudioFormat
Opens the clip, meaning that it should acquire any required system resources and become operational.
|
void |
TargetDataLine.open(AudioFormat
Opens the line with the specified format and requested buffer size, causing the line to acquire any required system resources and become operational.
|
void |
SourceDataLine.open(AudioFormat
Opens the line with the specified format and suggested buffer size, causing the line to acquire any required system resources and become operational.
|
void |
Clip.open(AudioInputStream
Opens the clip with the format and audio data present in the provided audio input stream.
|