|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.sound.sampled.spi.FormatConversionProvider
com.groovemanager.spi.floatEncoding.FloatConversionProvider
A FloatConversionProvider is an implementation of the FormatConversionProvider SPI. It provides conversion from and to PCM_SIGNED or PCM_FLOAT encoded data, where PCM_FLOAT stands for floating point samples normalized to +/- 1.0 either in 32 or 64 Bit.
| Field Summary | |
|---|---|
private static javax.sound.sampled.AudioFormat.Encoding[] |
encodings
The encodings supported by this provider |
| Constructor Summary | |
|---|---|
FloatConversionProvider()
Constructs a new FloatConversionProvider |
|
| Method Summary | |
|---|---|
javax.sound.sampled.AudioInputStream |
getAudioInputStream(javax.sound.sampled.AudioFormat.Encoding targetEncoding,
javax.sound.sampled.AudioInputStream sourceStream)
|
javax.sound.sampled.AudioInputStream |
getAudioInputStream(javax.sound.sampled.AudioFormat targetFormat,
javax.sound.sampled.AudioInputStream sourceStream)
|
private static javax.sound.sampled.AudioFormat |
getDefaultConversionFormat(javax.sound.sampled.AudioFormat sourceFormat,
javax.sound.sampled.AudioFormat.Encoding targetEncoding)
If only the target encoding is given, but not the target format, get a default target format out of the source format and the target encoding |
private int |
getFormatLength()
Get the number of possible formats |
javax.sound.sampled.AudioFormat.Encoding[] |
getSourceEncodings()
|
javax.sound.sampled.AudioFormat.Encoding[] |
getTargetEncodings()
|
javax.sound.sampled.AudioFormat.Encoding[] |
getTargetEncodings(javax.sound.sampled.AudioFormat sourceFormat)
|
javax.sound.sampled.AudioFormat[] |
getTargetFormats(javax.sound.sampled.AudioFormat.Encoding targetEncoding,
javax.sound.sampled.AudioFormat sourceFormat)
|
private boolean |
isSourceFormatSupported(javax.sound.sampled.AudioFormat sourceFormat)
Find out, if the given format is supported by this provider |
private boolean |
isSupportedPCMFormat(javax.sound.sampled.AudioFormat format)
Find out, if the given format is a valid PCM encoded format that is being supported by this provider |
| Methods inherited from class javax.sound.sampled.spi.FormatConversionProvider |
|---|
isConversionSupported, isConversionSupported, isSourceEncodingSupported, isTargetEncodingSupported |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final javax.sound.sampled.AudioFormat.Encoding[] encodings
| Constructor Detail |
|---|
public FloatConversionProvider()
| Method Detail |
|---|
public javax.sound.sampled.AudioInputStream getAudioInputStream(javax.sound.sampled.AudioFormat.Encoding targetEncoding,
javax.sound.sampled.AudioInputStream sourceStream)
getAudioInputStream in class javax.sound.sampled.spi.FormatConversionProviderFormatConversionProvider.getAudioInputStream(javax.sound.sampled.AudioFormat.Encoding, javax.sound.sampled.AudioInputStream)
public javax.sound.sampled.AudioInputStream getAudioInputStream(javax.sound.sampled.AudioFormat targetFormat,
javax.sound.sampled.AudioInputStream sourceStream)
getAudioInputStream in class javax.sound.sampled.spi.FormatConversionProviderFormatConversionProvider.getAudioInputStream(javax.sound.sampled.AudioFormat, javax.sound.sampled.AudioInputStream)
private static javax.sound.sampled.AudioFormat getDefaultConversionFormat(javax.sound.sampled.AudioFormat sourceFormat,
javax.sound.sampled.AudioFormat.Encoding targetEncoding)
sourceFormat - The source AudioFormattargetEncoding - The target encoding
private int getFormatLength()
public javax.sound.sampled.AudioFormat.Encoding[] getSourceEncodings()
getSourceEncodings in class javax.sound.sampled.spi.FormatConversionProviderFormatConversionProvider.getSourceEncodings()public javax.sound.sampled.AudioFormat.Encoding[] getTargetEncodings()
getTargetEncodings in class javax.sound.sampled.spi.FormatConversionProviderFormatConversionProvider.getTargetEncodings()public javax.sound.sampled.AudioFormat.Encoding[] getTargetEncodings(javax.sound.sampled.AudioFormat sourceFormat)
getTargetEncodings in class javax.sound.sampled.spi.FormatConversionProviderFormatConversionProvider.getTargetEncodings(javax.sound.sampled.AudioFormat)
public javax.sound.sampled.AudioFormat[] getTargetFormats(javax.sound.sampled.AudioFormat.Encoding targetEncoding,
javax.sound.sampled.AudioFormat sourceFormat)
getTargetFormats in class javax.sound.sampled.spi.FormatConversionProviderFormatConversionProvider.getTargetFormats(javax.sound.sampled.AudioFormat.Encoding, javax.sound.sampled.AudioFormat)private boolean isSourceFormatSupported(javax.sound.sampled.AudioFormat sourceFormat)
sourceFormat - The format to check for
private boolean isSupportedPCMFormat(javax.sound.sampled.AudioFormat format)
format - The AudioFormat to ask for
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||