Lines Matching defs:targetEncoding
108 public AudioFormat[] getTargetFormats(AudioFormat.Encoding targetEncoding, AudioFormat sourceFormat){
109 if( (AudioFormat.Encoding.PCM_SIGNED.equals(targetEncoding)
112 (AudioFormat.Encoding.ULAW.equals(targetEncoding)
122 public AudioInputStream getAudioInputStream(AudioFormat.Encoding targetEncoding, AudioInputStream sourceStream){
126 if (sourceEncoding.equals(targetEncoding)) {
130 if (!isConversionSupported(targetEncoding,sourceStream.getFormat())) {
131 throw new IllegalArgumentException("Unsupported conversion: " + sourceStream.getFormat().toString() + " to " + targetEncoding.toString());
134 AudioFormat.Encoding.PCM_SIGNED.equals(targetEncoding) ) {
135 targetFormat = new AudioFormat( targetEncoding,
143 AudioFormat.Encoding.ULAW.equals(targetEncoding)) {
144 targetFormat = new AudioFormat( targetEncoding,
152 throw new IllegalArgumentException("Unsupported conversion: " + sourceStream.getFormat().toString() + " to " + targetEncoding.toString());