Package org.vorbis.jcraft.jorbis

Examples of org.vorbis.jcraft.jorbis.VorbisFile


        try (InputStream inputStream = new BufferedInputStream(new FileInputStream(file))) {
            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 (SoundException e) {
            throw new IOException(e.getMessage());
        }
    }
View Full Code Here

TOP

Related Classes of org.vorbis.jcraft.jorbis.VorbisFile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.