protected AudioInputStream getAudioInputStream(InputStream inputStream, int medialength) throws UnsupportedAudioFileException, IOException {
AudioFileFormat audioFileFormat = getAudioFileFormat(inputStream, medialength);
// push back the StreamInfo
ByteArrayOutputStream byteOutStream = new ByteArrayOutputStream();
BitOutputStream bitOutStream = new BitOutputStream(byteOutStream);
bitOutStream.writeByteBlock(Constants.STREAM_SYNC_STRING, Constants.STREAM_SYNC_STRING.length);
/**
* TODO what if StreamInfo not last?
*/
streamInfo.write(bitOutStream, false);