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 | Description |
---|---|---|
static AudioFormat.Encoding |
AudioFormat.Encoding.ALAW |
Specifies a-law encoded data.
|
protected AudioFormat.Encoding |
AudioFormat.encoding |
The audio encoding technique used by this format.
|
static AudioFormat.Encoding |
AudioFormat.Encoding.PCM_FLOAT |
Specifies floating-point PCM data.
|
static AudioFormat.Encoding |
AudioFormat.Encoding.PCM_SIGNED |
Specifies signed, linear PCM data.
|
static AudioFormat.Encoding |
AudioFormat.Encoding.PCM_UNSIGNED |
Specifies unsigned, linear PCM data.
|
static AudioFormat.Encoding |
AudioFormat.Encoding.ULAW |
Specifies u-law encoded data.
|
Modifier and Type | Method | Description |
---|---|---|
AudioFormat.Encoding |
AudioFormat.getEncoding() |
Obtains the type of encoding for sounds in this format.
|
static AudioFormat.Encoding[] |
AudioSystem.getTargetEncodings(AudioFormat sourceFormat) |
Obtains the encodings that the system can obtain from an audio input
stream with the specified format using the set of installed format
converters.
|
static AudioFormat.Encoding[] |
AudioSystem.getTargetEncodings(AudioFormat.Encoding sourceEncoding) |
Obtains the encodings that the system can obtain from an audio input
stream with the specified encoding using the set of installed format
converters.
|
Modifier and Type | Method | Description |
---|---|---|
static AudioInputStream |
AudioSystem.getAudioInputStream(AudioFormat.Encoding targetEncoding,
AudioInputStream sourceStream) |
Obtains an audio input stream of the indicated encoding, by converting
the provided audio input stream.
|
static AudioFormat.Encoding[] |
AudioSystem.getTargetEncodings(AudioFormat.Encoding sourceEncoding) |
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.Encoding targetEncoding,
AudioFormat sourceFormat) |
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.Encoding targetEncoding,
AudioFormat sourceFormat) |
Indicates whether an audio input stream of the specified encoding can be
obtained from an audio input stream that has the specified format.
|
Constructor | Description |
---|---|
AudioFormat(AudioFormat.Encoding encoding,
float sampleRate,
int sampleSizeInBits,
int channels,
int frameSize,
float frameRate,
boolean bigEndian) |
Constructs an
AudioFormat with the given parameters. |
AudioFormat(AudioFormat.Encoding encoding,
float sampleRate,
int sampleSizeInBits,
int channels,
int frameSize,
float frameRate,
boolean bigEndian,
Map<String,Object> properties) |
Constructs an
AudioFormat with the given parameters. |
Modifier and Type | Method | Description |
---|---|---|
abstract AudioFormat.Encoding[] |
FormatConversionProvider.getSourceEncodings() |
Obtains the set of source format encodings from which format conversion
services are provided by this provider.
|
abstract AudioFormat.Encoding[] |
FormatConversionProvider.getTargetEncodings() |
Obtains the set of target format encodings to which format conversion
services are provided by this provider.
|
abstract AudioFormat.Encoding[] |
FormatConversionProvider.getTargetEncodings(AudioFormat sourceFormat) |
Obtains the set of target format encodings supported by the format
converter given a particular source format.
|
Modifier and Type | Method | Description |
---|---|---|
abstract AudioInputStream |
FormatConversionProvider.getAudioInputStream(AudioFormat.Encoding targetEncoding,
AudioInputStream sourceStream) |
Obtains an audio input stream with the specified encoding from the given
audio input stream.
|
abstract AudioFormat[] |
FormatConversionProvider.getTargetFormats(AudioFormat.Encoding targetEncoding,
AudioFormat sourceFormat) |
Obtains the set of target formats with the encoding specified supported
by the format converter.
|
boolean |
FormatConversionProvider.isConversionSupported(AudioFormat.Encoding targetEncoding,
AudioFormat sourceFormat) |
Indicates whether the format converter supports conversion to a
particular encoding from a particular format.
|
boolean |
FormatConversionProvider.isSourceEncodingSupported(AudioFormat.Encoding sourceEncoding) |
Indicates whether the format converter supports conversion from the
specified source format encoding.
|
boolean |
FormatConversionProvider.isTargetEncodingSupported(AudioFormat.Encoding targetEncoding) |
Indicates whether the format converter supports conversion to the
specified target format encoding.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps