java.lang.Object | ||
↳ | javax.sound.sampled.spi.FormatConversionProvider | |
↳ | com.sun.media.sound.AudioFloatFormatConverter |
This class is used to convert between 8,16,24,32 bit signed/unsigned big/litle endian fixed/floating stereo/mono/multi-channel audio streams and perform sample-rate conversion if needed.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Obtains an audio input stream with the specified encoding from the given audio
input stream.
| |||||||||||
Obtains an audio input stream with the specified format from the given audio
input stream.
| |||||||||||
Obtains the set of source format encodings from which format
conversion services are provided by this provider.
| |||||||||||
Obtains the set of target format encodings supported by the format converter
given a particular source format.
| |||||||||||
Obtains the set of target format encodings to which format
conversion services are provided by this provider.
| |||||||||||
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.
| |||||||||||
Indicates whether the format converter supports conversion to a particular encoding
from a particular format.
| |||||||||||
Indicates whether the format converter supports conversion to one
particular format from another.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Obtains an audio input stream with the specified encoding from the given audio input stream.
targetEncoding | desired encoding of the stream after processing |
---|---|
sourceStream | stream from which data to be processed should be read |
Obtains an audio input stream with the specified format from the given audio input stream.
targetFormat | desired data format of the stream after processing |
---|---|
sourceStream | stream from which data to be processed should be read |
Obtains the set of source format encodings from which format conversion services are provided by this provider.
Obtains the set of target format encodings supported by the format converter given a particular source format. If no target format encodings are supported for this source format, an array of length 0 is returned.
Obtains the set of target format encodings to which format conversion services are provided by this provider.
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.
Indicates whether the format converter supports conversion to a particular encoding from a particular format.
targetEncoding | desired encoding of the outgoing data |
---|---|
sourceFormat | format of the incoming data |
true
if the conversion is supported, otherwise false
Indicates whether the format converter supports conversion to one particular format from another.
targetFormat | desired format of outgoing data |
---|---|
sourceFormat | format of the incoming data |
true
if the conversion is supported, otherwise false