| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public AudioInputStream | getAudioInputStream(AudioFormat.
Implements abstract javax. Obtains an audio input stream with the specified encoding from the given audio input stream. |
| public AudioInputStream | getAudioInputStream(AudioFormat targetFormat, AudioInputStream sourceStream)
Implements abstract javax. Obtains an audio input stream with the specified format from the given audio input stream. |
| private AudioInputStream | Returns: stream from which processed data may be readdesired data format of the stream after processing outputFormat, AudioInputStream stream from which data to be processed should be read stream)Opens the codec with the specified parameters. |
| private AudioFormat[] | Returns: array of supported output formats.Obtains the set of output formats supported by the codec given a particular input format. |
| public AudioFormat. | getSourceEncodings()
Implements abstract javax. Obtains the set of source format encodings from which format conversion services are provided by this provider. |
| public AudioFormat. | getTargetEncodings()
Implements abstract javax. Obtains the set of target format encodings to which format conversion services are provided by this provider. |
| public AudioFormat. | getTargetEncodings(AudioFormat sourceFormat)
Implements abstract javax. Obtains the set of target format encodings supported by the format converter given a particular source format. |
| public AudioFormat[] | getTargetFormats(AudioFormat.
Implements abstract javax. Obtains the set of target formats with the encoding specified supported by the format converter. |
| PCMtoPCMCodec | back to summary |
|---|---|
| public PCMtoPCMCodec() | |
| getAudioInputStream | back to summary |
|---|---|
| public AudioInputStream getAudioInputStream(AudioFormat. Implements abstract javax. Doc from javax. Obtains an audio input stream with the specified encoding from the given audio input stream.
| |
| getAudioInputStream | back to summary |
|---|---|
| public AudioInputStream getAudioInputStream(AudioFormat targetFormat, AudioInputStream sourceStream) Implements abstract javax. Doc from javax. Obtains an audio input stream with the specified format from the given audio input stream.
| |
| getConvertedStream | back to summary |
|---|---|
| private AudioInputStream getConvertedStream(AudioFormat outputFormat, AudioInputStream stream) Opens the codec with the specified parameters.
| |
| getOutputFormats | back to summary |
|---|---|
| private AudioFormat[] getOutputFormats(AudioFormat inputFormat) Obtains the set of output formats supported by the codec given a particular input format. If no output formats are supported for this input format, returns an array of length 0.
| |
| getSourceEncodings | back to summary |
|---|---|
| public AudioFormat. Implements abstract javax. Doc from javax. Obtains the set of source format encodings from which format conversion services are provided by this provider.
| |
| getTargetEncodings | back to summary |
|---|---|
| public AudioFormat. Implements abstract javax. Doc from javax. Obtains the set of target format encodings to which format conversion services are provided by this provider.
| |
| getTargetEncodings | back to summary |
|---|---|
| public AudioFormat. Implements abstract javax. Doc from javax. 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.
| |
| getTargetFormats | back to summary |
|---|---|
| public AudioFormat[] getTargetFormats(AudioFormat. Implements abstract javax. Doc from javax. 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.
| |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final int | |
| private final int | |
| private final int | |
| private final int | |
| private final int | |
| private final int | |
| private final int | |
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | read()
Overrides javax. Note that this only works for sign conversions. |
| public int | read(byte[] b)
Overrides javax. Reads some number of bytes from the audio input stream and stores them
into the buffer array |
| public int | read(byte[] b, int off, int len)
Overrides javax. Reads up to a specified maximum number of bytes of data from the audio stream, putting them into the given byte array. |
| private void | |
| private void | |
| private void | |
| private void |
| conversionType | back to summary |
|---|---|
| private int conversionType | |
| PCM_SIGNED_BE2UNSIGNED_LE | back to summary |
|---|---|
| private final int PCM_SIGNED_BE2UNSIGNED_LE | |
| PCM_SIGNED_LE2UNSIGNED_BE | back to summary |
|---|---|
| private final int PCM_SIGNED_LE2UNSIGNED_BE | |
| PCM_SWITCH_ENDIAN | back to summary |
|---|---|
| private final int PCM_SWITCH_ENDIAN | |
| PCM_SWITCH_SIGNED_8BIT | back to summary |
|---|---|
| private final int PCM_SWITCH_SIGNED_8BIT | |
| PCM_SWITCH_SIGNED_BE | back to summary |
|---|---|
| private final int PCM_SWITCH_SIGNED_BE | |
| PCM_SWITCH_SIGNED_LE | back to summary |
|---|---|
| private final int PCM_SWITCH_SIGNED_LE | |
| PCM_UNSIGNED_BE2SIGNED_LE | back to summary |
|---|---|
| private final int PCM_UNSIGNED_BE2SIGNED_LE | |
| PCM_UNSIGNED_LE2SIGNED_BE | back to summary |
|---|---|
| private final int PCM_UNSIGNED_LE2SIGNED_BE | |
| sampleSizeInBytes | back to summary |
|---|---|
| private final int sampleSizeInBytes | |
| PCMtoPCMCodecStream | back to summary |
|---|---|
| pack-priv PCMtoPCMCodecStream(AudioInputStream stream, AudioFormat outputFormat) | |
| read | back to summary |
|---|---|
| public int read() throws IOException Overrides javax. Note that this only works for sign conversions. Other conversions require a read of at least 2 bytes.
| |
| read | back to summary |
|---|---|
| public int read(byte[] b) throws IOException Overrides javax. Doc from javax. Reads some number of bytes from the audio input stream and stores them
into the buffer array
This method will always read an integral number of frames. If the length
of the array is not an integral number of frames, a maximum of
| |
| read | back to summary |
|---|---|
| public int read(byte[] b, int off, int len) throws IOException Overrides javax. Doc from javax. Reads up to a specified maximum number of bytes of data from the audio stream, putting them into the given byte array.
This method will always read an integral number of frames. If
| |
| switchEndian | back to summary |
|---|---|
| private void switchEndian(byte[] b, int off, int len, int readCount) | |
| switchSigned8bit | back to summary |
|---|---|
| private void switchSigned8bit(byte[] b, int off, int len, int readCount) | |
| switchSignedBE | back to summary |
|---|---|
| private void switchSignedBE(byte[] b, int off, int len, int readCount) | |
| switchSignedLE | back to summary |
|---|---|
| private void switchSignedLE(byte[] b, int off, int len, int readCount) | |