Lines Matching refs:sourceStream
762 * @param sourceStream the stream to be converted
766 * {@code sourceStream} are {@code null}
773 AudioInputStream sourceStream) {
775 Objects.requireNonNull(sourceStream);
776 if (sourceStream.getFormat().getEncoding().equals(targetEncoding)) {
777 return sourceStream;
784 if( codec.isConversionSupported( targetEncoding, sourceStream.getFormat() ) ) {
785 return codec.getAudioInputStream( targetEncoding, sourceStream );
789 throw new IllegalArgumentException("Unsupported conversion: " + targetEncoding + " from " + sourceStream.getFormat());
866 * @param sourceStream the stream to be converted
870 * {@code sourceStream} are {@code null}
877 AudioInputStream sourceStream) {
878 if (sourceStream.getFormat().matches(targetFormat)) {
879 return sourceStream;
886 if(codec.isConversionSupported(targetFormat,sourceStream.getFormat()) ) {
887 return codec.getAudioInputStream(targetFormat,sourceStream);
892 throw new IllegalArgumentException("Unsupported conversion: " + targetFormat + " from " + sourceStream.getFormat());