@ Override public AudioInputStream getAudioInputStream ( AudioFormat targetFormat , AudioInputStream audioInputStream ) { if ( isConversionSupported ( targetFormat , audioInputStream . getFormat ( ) ) ) { return new DecodedVorbisAudioInputStream ( targetFormat , audioInputStream ) ; } else { throw new IllegalArgumentException ( "conversion not supported" ) ; } }
Returns converted AudioInputStream .