public class SpeexFormatConvertionProvider
extends javax.sound.sampled.spi.FormatConversionProvider
Modifier and Type | Field and Description |
---|---|
static javax.sound.sampled.AudioFormat.Encoding[] |
BOTH_ENCODINGS |
static javax.sound.sampled.AudioFormat.Encoding[] |
NO_ENCODING |
static javax.sound.sampled.AudioFormat[] |
NO_FORMAT |
static javax.sound.sampled.AudioFormat.Encoding[] |
PCM_ENCODING |
static javax.sound.sampled.AudioFormat.Encoding[] |
SPEEX_ENCODING |
Constructor and Description |
---|
SpeexFormatConvertionProvider() |
Modifier and Type | Method and Description |
---|---|
javax.sound.sampled.AudioInputStream |
getAudioInputStream(javax.sound.sampled.AudioFormat.Encoding targetEncoding,
javax.sound.sampled.AudioInputStream sourceStream)
Obtains an audio input stream with the specified encoding from the given
audio input stream.
|
javax.sound.sampled.AudioInputStream |
getAudioInputStream(javax.sound.sampled.AudioFormat targetFormat,
javax.sound.sampled.AudioInputStream sourceStream)
Obtains an audio input stream with the specified format from the given
audio input stream.
|
javax.sound.sampled.AudioFormat.Encoding[] |
getSourceEncodings()
Obtains the set of source format encodings from which format conversion
services are provided by this provider.
|
javax.sound.sampled.AudioFormat.Encoding[] |
getTargetEncodings()
Obtains the set of target format encodings to which format conversion
services are provided by this provider.
|
javax.sound.sampled.AudioFormat.Encoding[] |
getTargetEncodings(javax.sound.sampled.AudioFormat sourceFormat)
Obtains the set of target format encodings supported by the format
converter given a particular source format.
|
javax.sound.sampled.AudioFormat[] |
getTargetFormats(javax.sound.sampled.AudioFormat.Encoding targetEncoding,
javax.sound.sampled.AudioFormat sourceFormat)
Obtains the set of target formats with the encoding specified supported by
the format converter.
|
public static final javax.sound.sampled.AudioFormat.Encoding[] NO_ENCODING
public static final javax.sound.sampled.AudioFormat.Encoding[] PCM_ENCODING
public static final javax.sound.sampled.AudioFormat.Encoding[] SPEEX_ENCODING
public static final javax.sound.sampled.AudioFormat.Encoding[] BOTH_ENCODINGS
public static final javax.sound.sampled.AudioFormat[] NO_FORMAT
public javax.sound.sampled.AudioFormat.Encoding[] getSourceEncodings()
getSourceEncodings
in class javax.sound.sampled.spi.FormatConversionProvider
public javax.sound.sampled.AudioFormat.Encoding[] getTargetEncodings()
getTargetEncodings
in class javax.sound.sampled.spi.FormatConversionProvider
public javax.sound.sampled.AudioFormat.Encoding[] getTargetEncodings(javax.sound.sampled.AudioFormat sourceFormat)
getTargetEncodings
in class javax.sound.sampled.spi.FormatConversionProvider
sourceFormat
- format of the incoming data.public javax.sound.sampled.AudioFormat[] getTargetFormats(javax.sound.sampled.AudioFormat.Encoding targetEncoding, javax.sound.sampled.AudioFormat sourceFormat)
getTargetFormats
in class javax.sound.sampled.spi.FormatConversionProvider
targetEncoding
- desired encoding of the outgoing data.sourceFormat
- format of the incoming data.public javax.sound.sampled.AudioInputStream getAudioInputStream(javax.sound.sampled.AudioFormat.Encoding targetEncoding, javax.sound.sampled.AudioInputStream sourceStream)
getAudioInputStream
in class javax.sound.sampled.spi.FormatConversionProvider
targetEncoding
- - desired encoding of the stream after processing.sourceStream
- - stream from which data to be processed should be read.java.lang.IllegalArgumentException
- - if the format combination supplied
is not supported.public javax.sound.sampled.AudioInputStream getAudioInputStream(javax.sound.sampled.AudioFormat targetFormat, javax.sound.sampled.AudioInputStream sourceStream)
getAudioInputStream
in class javax.sound.sampled.spi.FormatConversionProvider
targetFormat
- - desired data format of the stream after processing.sourceStream
- - stream from which data to be processed should be read.java.lang.IllegalArgumentException
- - if the format combination supplied
is not supported.Copyright © 1999-2004 Wimba S.A. All Rights Reserved.