Lines Matching refs:sourceStream
121 public AudioInputStream getAudioInputStream(AudioFormat.Encoding targetEncoding, AudioInputStream sourceStream){
122 AudioFormat sourceFormat = sourceStream.getFormat();
125 if (!isConversionSupported(targetEncoding,sourceStream.getFormat())) {
126 throw new IllegalArgumentException("Unsupported conversion: " + sourceStream.getFormat().toString() + " to " + targetEncoding.toString());
129 return sourceStream;
151 throw new IllegalArgumentException("Unsupported conversion: " + sourceStream.getFormat().toString() + " to " + targetEncoding.toString());
154 return getConvertedStream(targetFormat, sourceStream);
158 public AudioInputStream getAudioInputStream(AudioFormat targetFormat, AudioInputStream sourceStream){
159 if (!isConversionSupported(targetFormat, sourceStream.getFormat()))
161 + sourceStream.getFormat().toString() + " to "
163 return getConvertedStream(targetFormat, sourceStream);