inputStream.mark(MARK_LIMIT);
AudioFileFormat aff = getAudioFileFormat(inputStream);
inputStream.reset();
// Get Vorbis file info such as length in seconds.
VorbisFile vf = new VorbisFile(file.getAbsolutePath());
return getAudioFileFormat(inputStream, (int) file.length(), (int) Math.round(( vf.time_total(-1) ) * 1000));
}
catch (JOrbisException e) {
throw new IOException(e.getMessage());
}
finally {