| Package | Description |
|---|---|
| javax.sound.sampled |
Provides interfaces and classes for capture, processing, and playback of sampled audio data.
|
| javax.sound.sampled.spi |
Supplies abstract classes for service providers to subclass when offering new audio devices, sound file readers and writers, or audio format converters.
|
| Modifier and Type | Field and Description |
|---|---|
static AudioFileFormat |
AudioFileFormat.Type.AIFC
Specifies an AIFF-C file.
|
static AudioFileFormat |
AudioFileFormat.Type.AIFF
Specifies an AIFF file.
|
static AudioFileFormat |
AudioFileFormat.Type.AU
Specifies an AU file.
|
static AudioFileFormat |
AudioFileFormat.Type.SND
Specifies a SND file.
|
static AudioFileFormat |
AudioFileFormat.Type.WAVE
Specifies a WAVE file.
|
| Modifier and Type | Method and Description |
|---|---|
static AudioFileFormat |
AudioSystem.getAudioFileTypes()
Obtains the file types for which file writing support is provided by the system.
|
static AudioFileFormat |
AudioSystem.getAudioFileTypes(AudioInputStream
Obtains the file types that the system can write from the audio input stream specified.
|
AudioFileFormat |
AudioFileFormat.getType()
Obtains the audio file type, such as
WAVE or
AU.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
AudioSystem.isFileTypeSupported(AudioFileFormat
Indicates whether file writing support for the specified file type is provided by the system.
|
static boolean |
AudioSystem.isFileTypeSupported(AudioFileFormat
Indicates whether an audio file of the specified file type can be written from the indicated audio input stream.
|
static int |
AudioSystem.write(AudioInputStream
Writes a stream of bytes representing an audio file of the specified file type to the external file provided.
|
static int |
AudioSystem.write(AudioInputStream
Writes a stream of bytes representing an audio file of the specified file type to the output stream provided.
|
| Constructor and Description | |
|---|---|
AudioFileFormat(AudioFileFormat
Constructs an audio file format object.
|
|
AudioFileFormat(AudioFileFormat
Construct an audio file format object with a set of defined properties.
|
|
AudioFileFormat(AudioFileFormat
Constructs an audio file format object.
|
| Modifier and Type | Method and Description |
|---|---|
abstract AudioFileFormat |
AudioFileWriter.getAudioFileTypes()
Obtains the file types for which file writing support is provided by this audio file writer.
|
abstract AudioFileFormat |
AudioFileWriter.getAudioFileTypes(AudioInputStream
Obtains the file types that this audio file writer can write from the audio input stream specified.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
AudioFileWriter.isFileTypeSupported(AudioFileFormat
Indicates whether file writing support for the specified file type is provided by this audio file writer.
|
boolean |
AudioFileWriter.isFileTypeSupported(AudioFileFormat
Indicates whether an audio file of the type specified can be written from the audio input stream indicated.
|
abstract int |
AudioFileWriter.write(AudioInputStream
Writes a stream of bytes representing an audio file of the file format indicated to the external file provided.
|
abstract int |
AudioFileWriter.write(AudioInputStream
Writes a stream of bytes representing an audio file of the file type indicated to the output stream provided.
|