* @see #getAudioInputStream(AudioFormat, AudioInputStream)
*/
public static AudioInputStream getAudioInputStream(AudioFormat.Encoding targetEncoding,
AudioInputStream sourceStream) {
FormatConversionProvider codecs[] = getFormatConversionProviders();
//$$fb 2001-08-03: reverse this loop to give external providers more priority (Bug #4487550)
for(int i = codecs.length-1; i >= 0; i-- ) {
if( codecs[i].isConversionSupported( targetEncoding, sourceStream.getFormat() ) ) {
return codecs[i].getAudioInputStream( targetEncoding, sourceStream );