Lines Matching refs:targetEncoding
832 * @param targetEncoding the desired encoding after conversion
837 public static boolean isConversionSupported(AudioFormat.Encoding targetEncoding, AudioFormat sourceFormat) {
844 if(codec.isConversionSupported(targetEncoding,sourceFormat) ) {
855 * @param targetEncoding the desired encoding after conversion
864 public static AudioInputStream getAudioInputStream(AudioFormat.Encoding targetEncoding,
871 if( codec.isConversionSupported( targetEncoding, sourceStream.getFormat() ) ) {
872 return codec.getAudioInputStream( targetEncoding, sourceStream );
876 throw new IllegalArgumentException("Unsupported conversion: " + targetEncoding + " from " + sourceStream.getFormat());
884 * @param targetEncoding the desired encoding after conversion
889 public static AudioFormat[] getTargetFormats(AudioFormat.Encoding targetEncoding, AudioFormat sourceFormat) {
902 fmts = codec.getTargetFormats(targetEncoding, sourceFormat);