public class G711FormatConversionProvider
extends javax.sound.sampled.spi.FormatConversionProvider
Modifier and Type | Field and Description |
---|---|
static javax.sound.sampled.AudioFormat.Encoding[] |
BOTH_ENCODINGS |
static boolean |
DEBUG
Debug
|
static javax.sound.sampled.AudioFormat.Encoding[] |
G711_ENCODING |
static javax.sound.sampled.AudioFormat.Encoding[] |
NO_ENCODING |
static javax.sound.sampled.AudioFormat[] |
NO_FORMAT |
static javax.sound.sampled.AudioFormat.Encoding[] |
PCM_ENCODING |
Constructor and Description |
---|
G711FormatConversionProvider() |
Modifier and Type | Method and Description |
---|---|
javax.sound.sampled.AudioInputStream |
getAudioInputStream(javax.sound.sampled.AudioFormat.Encoding target_encoding,
javax.sound.sampled.AudioInputStream source_stream)
Obtains an audio input stream with the specified encoding from the given
audio source stream.
|
javax.sound.sampled.AudioInputStream |
getAudioInputStream(javax.sound.sampled.AudioFormat target_format,
javax.sound.sampled.AudioInputStream source_stream)
Obtains an audio input stream with the specified format from the given
audio source 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 source_format)
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 target_encoding,
javax.sound.sampled.AudioFormat source_format)
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[] G711_ENCODING
public static final javax.sound.sampled.AudioFormat.Encoding[] BOTH_ENCODINGS
public static final javax.sound.sampled.AudioFormat[] NO_FORMAT
public static boolean DEBUG
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 source_format)
getTargetEncodings
in class javax.sound.sampled.spi.FormatConversionProvider
source_format
- format of the incoming data.public javax.sound.sampled.AudioFormat[] getTargetFormats(javax.sound.sampled.AudioFormat.Encoding target_encoding, javax.sound.sampled.AudioFormat source_format)
getTargetFormats
in class javax.sound.sampled.spi.FormatConversionProvider
target_encoding
- desired encoding of the outgoing data.source_format
- format of the incoming data.public javax.sound.sampled.AudioInputStream getAudioInputStream(javax.sound.sampled.AudioFormat.Encoding target_encoding, javax.sound.sampled.AudioInputStream source_stream)
getAudioInputStream
in class javax.sound.sampled.spi.FormatConversionProvider
target_encoding
- - desired encoding of the stream after processing.source_stream
- - 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 target_format, javax.sound.sampled.AudioInputStream source_stream)
getAudioInputStream
in class javax.sound.sampled.spi.FormatConversionProvider
target_format
- - desired data format of the stream after processing.source_stream
- - stream from which data to be processed should be read.java.lang.IllegalArgumentException
- - if the format combination supplied
is not supported.