| 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 AudioFormat |
AudioFormat.Encoding.ALAW
Specifies a-law encoded data.
|
protected AudioFormat |
AudioFormat.encoding
The audio encoding technique used by this format.
|
static AudioFormat |
AudioFormat.Encoding.PCM_FLOAT
Specifies floating-point PCM data.
|
static AudioFormat |
AudioFormat.Encoding.PCM_SIGNED
Specifies signed, linear PCM data.
|
static AudioFormat |
AudioFormat.Encoding.PCM_UNSIGNED
Specifies unsigned, linear PCM data.
|
static AudioFormat |
AudioFormat.Encoding.ULAW
Specifies u-law encoded data.
|
| Modifier and Type | Method and Description |
|---|---|
AudioFormat |
AudioFormat.getEncoding()
Obtains the type of encoding for sounds in this format.
|
static AudioFormat |
AudioSystem.getTargetEncodings(AudioFormat
Obtains the encodings that the system can obtain from an audio input stream with the specified encoding using the set of installed format converters.
|
static AudioFormat |
AudioSystem.getTargetEncodings(AudioFormat
Obtains the encodings that the system can obtain from an audio input stream with the specified format using the set of installed format converters.
|
| Modifier and Type | Method and Description |
|---|---|
static AudioInputStream |
AudioSystem.getAudioInputStream(AudioFormat
Obtains an audio input stream of the indicated encoding, by converting the provided audio input stream.
|
static AudioFormat |
AudioSystem.getTargetEncodings(AudioFormat
Obtains the encodings that the system can obtain from an audio input stream with the specified encoding using the set of installed format converters.
|
static AudioFormat |
AudioSystem.getTargetFormats(AudioFormat
Obtains the formats that have a particular encoding and that the system can obtain from a stream of the specified format using the set of installed format converters.
|
static boolean |
AudioSystem.isConversionSupported(AudioFormat
Indicates whether an audio input stream of the specified encoding can be obtained from an audio input stream that has the specified format.
|
| Constructor and Description | |
|---|---|
AudioFormat(AudioFormat
Constructs an
AudioFormat with the given parameters.
|
|
AudioFormat(AudioFormat
Constructs an
AudioFormat with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
abstract AudioFormat |
FormatConversionProvider.getSourceEncodings()
Obtains the set of source format encodings from which format conversion services are provided by this provider.
|
abstract AudioFormat |
FormatConversionProvider.getTargetEncodings()
Obtains the set of target format encodings to which format conversion services are provided by this provider.
|
abstract AudioFormat |
FormatConversionProvider.getTargetEncodings(AudioFormat
Obtains the set of target format encodings supported by the format converter given a particular source format.
|
| Modifier and Type | Method and Description |
|---|---|
abstract AudioInputStream |
FormatConversionProvider.getAudioInputStream(AudioFormat
Obtains an audio input stream with the specified encoding from the given audio input stream.
|
abstract AudioFormat |
FormatConversionProvider.getTargetFormats(AudioFormat
Obtains the set of target formats with the encoding specified supported by the format converter If no target formats with the specified encoding are supported for this source format, an array of length 0 is returned.
|
boolean |
FormatConversionProvider.isConversionSupported(AudioFormat
Indicates whether the format converter supports conversion to a particular encoding from a particular format.
|
boolean |
FormatConversionProvider.isSourceEncodingSupported(AudioFormat
Indicates whether the format converter supports conversion from the specified source format encoding.
|
boolean |
FormatConversionProvider.isTargetEncodingSupported(AudioFormat
Indicates whether the format converter supports conversion to the specified target format encoding.
|