org.tritonus.share.sampled.convert
Class TMatrixFormatConversionProvider
java.lang.Object
javax.sound.sampled.spi.FormatConversionProvider
org.tritonus.share.sampled.convert.TFormatConversionProvider
org.tritonus.share.sampled.convert.TSimpleFormatConversionProvider
org.tritonus.share.sampled.convert.TMatrixFormatConversionProvider
- public abstract class TMatrixFormatConversionProvider
- extends TSimpleFormatConversionProvider
Base class for arbitrary formatConversionProviders.
- Author:
- Matthias Pfisterer
Methods inherited from class org.tritonus.share.sampled.convert.TSimpleFormatConversionProvider |
disable, doMatch, doMatch, getCollectionSourceEncodings, getCollectionSourceFormats, getCollectionTargetEncodings, getCollectionTargetFormats, getFrameSize, getSourceEncodings, getTargetEncodings, isAllowedSourceEncoding, isAllowedSourceFormat, isAllowedTargetEncoding, isAllowedTargetFormat, isSourceEncodingSupported, isTargetEncodingSupported, replaceNotSpecified |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TMatrixFormatConversionProvider
protected TMatrixFormatConversionProvider(List sourceFormats,
List targetFormats,
boolean[][] abConversionPossible)
getTargetEncodings
public AudioFormat.Encoding[] getTargetEncodings(AudioFormat sourceFormat)
- Description copied from class:
TSimpleFormatConversionProvider
- This implementation assumes that the converter can convert
from each of its source encodings to each of its target
encodings. If this is not the case, the converter has to
override this method.
- Overrides:
getTargetEncodings
in class TSimpleFormatConversionProvider
getTargetFormats
public AudioFormat[] getTargetFormats(AudioFormat.Encoding targetEncoding,
AudioFormat sourceFormat)
- Description copied from class:
TSimpleFormatConversionProvider
- This implementation assumes that the converter can convert
from each of its source formats to each of its target
formats. If this is not the case, the converter has to
override this method.
- Overrides:
getTargetFormats
in class TSimpleFormatConversionProvider