Package org.jaudiotagger.audio.ogg

Examples of org.jaudiotagger.audio.ogg.OggFileReader


    private static VorbisDecoder vorbisdecoder = new VorbisDecoder();

    public Track readSingle(Track track) {
      TrackData trackData = track.getTrackData();
        try {
            OggFileReader reader = new OggFileReader();
            AudioFile af1 = reader.read(trackData.getFile());
            Tag tag = af1.getTag();
            copyCommonTagFields(tag, track);
            copySpecificTagFields(tag, track);
            copyHeaderFields((GenericAudioHeader) af1.getAudioHeader(), track);
        } catch (Exception e) {
View Full Code Here


     * Creates the readers and writers.
     */
    private void prepareReadersAndWriters() {

        // Tag Readers
        readers.put(SupportedFileFormat.OGG.getFilesuffix(), new OggFileReader());
        readers.put(SupportedFileFormat.FLAC.getFilesuffix(), new FlacFileReader());
        readers.put(SupportedFileFormat.MP3.getFilesuffix(), new MP3FileReader());
        readers.put(SupportedFileFormat.MP4.getFilesuffix(), new Mp4FileReader());
        readers.put(SupportedFileFormat.M4A.getFilesuffix(), new Mp4FileReader());
        readers.put(SupportedFileFormat.M4P.getFilesuffix(), new Mp4FileReader());
View Full Code Here

TOP

Related Classes of org.jaudiotagger.audio.ogg.OggFileReader

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.