Lines Matching refs:targetEncoding
121 public AudioFormat[] getTargetFormats(AudioFormat.Encoding targetEncoding, AudioFormat sourceFormat){
122 if( (targetEncoding.equals( AudioFormat.Encoding.PCM_SIGNED ) && sourceFormat.getEncoding().equals( AudioFormat.Encoding.ALAW)) ||
123 (targetEncoding.equals( AudioFormat.Encoding.ALAW) && sourceFormat.getEncoding().equals( AudioFormat.Encoding.PCM_SIGNED)) ) {
132 public AudioInputStream getAudioInputStream(AudioFormat.Encoding targetEncoding, AudioInputStream sourceStream){
136 if( sourceEncoding.equals( targetEncoding ) ) {
140 if( !isConversionSupported(targetEncoding,sourceStream.getFormat()) ) {
141 throw new IllegalArgumentException("Unsupported conversion: " + sourceStream.getFormat().toString() + " to " + targetEncoding.toString());
144 targetEncoding.equals( AudioFormat.Encoding.PCM_SIGNED ) ) {
146 targetFormat = new AudioFormat( targetEncoding,
155 targetEncoding.equals( AudioFormat.Encoding.ALAW ) ) {
157 targetFormat = new AudioFormat( targetEncoding,
165 throw new IllegalArgumentException("Unsupported conversion: " + sourceStream.getFormat().toString() + " to " + targetEncoding.toString());