Lines Matching refs:targetFormat
836 * @param targetFormat the desired audio format after conversion
840 * @throws NullPointerException if {@code targetFormat} or
843 public static boolean isConversionSupported(AudioFormat targetFormat, AudioFormat sourceFormat) {
844 Objects.requireNonNull(targetFormat);
846 if (sourceFormat.matches(targetFormat)) {
854 if(codec.isConversionSupported(targetFormat, sourceFormat) ) {
865 * @param targetFormat the desired audio format after conversion
869 * @throws NullPointerException if {@code targetFormat} or
876 public static AudioInputStream getAudioInputStream(AudioFormat targetFormat,
878 if (sourceStream.getFormat().matches(targetFormat)) {
886 if(codec.isConversionSupported(targetFormat,sourceStream.getFormat()) ) {
887 return codec.getAudioInputStream(targetFormat,sourceStream);
892 throw new IllegalArgumentException("Unsupported conversion: " + targetFormat + " from " + sourceStream.getFormat());