public class SampleRateConversionProvider
extends org.tritonus.share.sampled.convert.TSimpleFormatConversionProvider
Modifier and Type | Class and Description |
---|---|
static class |
SampleRateConversionProvider.SampleRateConverterStream
SampleRateConverterStream
|
static class |
SampleRateConversionProvider.SRCAudioFormat
Obviously, this class is used to be able to set the frame rate/sample
rate after the AudioFormat object has been created.
|
Modifier and Type | Field and Description |
---|---|
static javax.sound.sampled.AudioFormat.Encoding |
PCM_SIGNED |
static javax.sound.sampled.AudioFormat.Encoding |
PCM_UNSIGNED |
Constructor and Description |
---|
SampleRateConversionProvider()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected static long |
convertLength(javax.sound.sampled.AudioFormat sourceFormat,
javax.sound.sampled.AudioFormat targetFormat,
long sourceLength) |
protected static long |
convertLength(float sourceSR,
float targetSR,
long sourceLength) |
javax.sound.sampled.AudioInputStream |
getAudioInputStream(javax.sound.sampled.AudioFormat targetFormat,
javax.sound.sampled.AudioInputStream sourceStream) |
javax.sound.sampled.AudioFormat[] |
getTargetFormats(javax.sound.sampled.AudioFormat.Encoding targetEncoding,
javax.sound.sampled.AudioFormat sourceFormat) |
boolean |
isConversionSupported(javax.sound.sampled.AudioFormat targetFormat,
javax.sound.sampled.AudioFormat sourceFormat) |
disable, doMatch, doMatch, getCollectionSourceEncodings, getCollectionSourceFormats, getCollectionTargetEncodings, getCollectionTargetFormats, getFrameSize, getSourceEncodings, getTargetEncodings, getTargetEncodings, isAllowedSourceEncoding, isAllowedSourceFormat, isAllowedTargetEncoding, isAllowedTargetFormat, isSourceEncodingSupported, isTargetEncodingSupported, replaceNotSpecified
public static javax.sound.sampled.AudioFormat.Encoding PCM_SIGNED
public static javax.sound.sampled.AudioFormat.Encoding PCM_UNSIGNED
public javax.sound.sampled.AudioInputStream getAudioInputStream(javax.sound.sampled.AudioFormat targetFormat, javax.sound.sampled.AudioInputStream sourceStream)
getAudioInputStream
in class javax.sound.sampled.spi.FormatConversionProvider
public javax.sound.sampled.AudioFormat[] getTargetFormats(javax.sound.sampled.AudioFormat.Encoding targetEncoding, javax.sound.sampled.AudioFormat sourceFormat)
getTargetFormats
in class org.tritonus.share.sampled.convert.TSimpleFormatConversionProvider
public boolean isConversionSupported(javax.sound.sampled.AudioFormat targetFormat, javax.sound.sampled.AudioFormat sourceFormat)
isConversionSupported
in class org.tritonus.share.sampled.convert.TFormatConversionProvider
protected static long convertLength(javax.sound.sampled.AudioFormat sourceFormat, javax.sound.sampled.AudioFormat targetFormat, long sourceLength)
protected static long convertLength(float sourceSR, float targetSR, long sourceLength)