if (in == null)
return new Format[] { new AudioFormat(AudioFormat.ULAW) };
if (matches(in, inputFormats) == null)
return new Format[1];
if (! (in instanceof AudioFormat) )
return new Format[] { new AudioFormat(AudioFormat.ULAW) };
AudioFormat af =(AudioFormat) in;
return new Format[] { new AudioFormat(
AudioFormat.ULAW,
af.getSampleRate(),
af.getSampleSizeInBits(),
af.getChannels())
};