|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use AudioFormat | |
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. |
Uses of AudioFormat in javax.sound.sampled |
Fields in javax.sound.sampled declared as AudioFormat | |
protected AudioFormat |
AudioInputStream.format
The format of the audio data contained in the stream. |
Methods in javax.sound.sampled that return AudioFormat | |
AudioFormat |
AudioInputStream.getFormat()
Obtains the audio format of the sound data in this audio input stream. |
AudioFormat |
DataLine.getFormat()
Obtains the current format (encoding, sample rate, number of channels, etc.) of the data line's audio data. |
AudioFormat[] |
DataLine.Info.getFormats()
Obtains a set of audio formats supported by the data line. |
AudioFormat |
AudioFileFormat.getFormat()
Obtains the format of the audio data contained in the audio file. |
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. |
Methods in javax.sound.sampled with parameters of type AudioFormat | |
boolean |
DataLine.Info.isFormatSupported(AudioFormat format)
Indicates whether this data line supports a particular audio 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 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. |
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 targetFormat,
AudioFormat sourceFormat)
Indicates whether an audio input stream of a specified format can be obtained from an audio input stream of another specified format. |
static AudioInputStream |
AudioSystem.getAudioInputStream(AudioFormat targetFormat,
AudioInputStream sourceStream)
Obtains an audio input stream of the indicated format, by converting the provided audio input stream. |
boolean |
AudioFormat.matches(AudioFormat format)
Indicates whether this format matches the one specified. |
void |
Clip.open(AudioFormat format,
byte[] data,
int offset,
int bufferSize)
Opens the clip, meaning that it should acquire any required system resources and become operational. |
void |
TargetDataLine.open(AudioFormat format,
int bufferSize)
Opens the line with the specified format and requested buffer size, causing the line to acquire any required system resources and become operational. |
void |
TargetDataLine.open(AudioFormat format)
Opens the line with the specified format, causing the line to acquire any required system resources and become operational. |
void |
SourceDataLine.open(AudioFormat format,
int bufferSize)
Opens the line with the specified format and suggested buffer size, causing the line to acquire any required system resources and become operational. |
void |
SourceDataLine.open(AudioFormat format)
Opens the line with the specified format, causing the line to acquire any required system resources and become operational. |
Constructors in javax.sound.sampled with parameters of type AudioFormat | |
AudioInputStream(InputStream stream,
AudioFormat format,
long length)
Constructs an audio input stream that has the requested format and length in sample frames, using audio data from the specified input stream. |
|
DataLine.Info(Class lineClass,
AudioFormat[] formats,
int minBufferSize,
int maxBufferSize)
Constructs a data line's info object from the specified information, which includes a set of supported audio formats and a range for the buffer size. |
|
DataLine.Info(Class lineClass,
AudioFormat format,
int bufferSize)
Constructs a data line's info object from the specified information, which includes a single audio format and a desired buffer size. |
|
DataLine.Info(Class lineClass,
AudioFormat format)
Constructs a data line's info object from the specified information, which includes a single audio format. |
|
AudioFileFormat(AudioFileFormat.Type type,
int byteLength,
AudioFormat format,
int frameLength)
Constructs an audio file format object. |
|
AudioFileFormat(AudioFileFormat.Type type,
AudioFormat format,
int frameLength)
Constructs an audio file format object. |
Uses of AudioFormat in javax.sound.sampled.spi |
Methods in javax.sound.sampled.spi that return AudioFormat | |
abstract AudioFormat[] |
FormatConversionProvider.getTargetFormats(AudioFormat.Encoding targetEncoding,
AudioFormat sourceFormat)
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. |
Methods in javax.sound.sampled.spi with parameters of type AudioFormat | |
abstract AudioFormat.Encoding[] |
FormatConversionProvider.getTargetEncodings(AudioFormat sourceFormat)
Obtains the set of target format encodings supported by the format converter given a particular source format. |
boolean |
FormatConversionProvider.isConversionSupported(AudioFormat.Encoding targetEncoding,
AudioFormat sourceFormat)
Indicates whether the format converter supports conversion to a particular encoding from a particular format. |
abstract AudioFormat[] |
FormatConversionProvider.getTargetFormats(AudioFormat.Encoding targetEncoding,
AudioFormat sourceFormat)
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 targetFormat,
AudioFormat sourceFormat)
Indicates whether the format converter supports conversion to one particular format from another. |
abstract AudioInputStream |
FormatConversionProvider.getAudioInputStream(AudioFormat targetFormat,
AudioInputStream sourceStream)
Obtains an audio input stream with the specified format from the given audio input stream. |
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Oracle and/or its affiliates, in the US and other countries.
Copyright © 1995, 2010 Oracle and/or its affiliates. All rights reserved.