Package com.totalchange.jizz.audio

Examples of com.totalchange.jizz.audio.JizzTrackInfo


        JizzXugglerTrackInfoReaderImpl infoReader = new JizzXugglerTrackInfoReaderImpl();
        InputStream in = JizzAudioTests
                .getInputStream("test-2-44100-s16p-mp3-64.mp3");

        try {
            JizzTrackInfo info = infoReader.read(in);
            assertEquals("Will Shatner", info.getArtist());
            assertEquals("Khan", info.getTitle());
        } finally {
            in.close();
        }
    }
View Full Code Here


    private JizzSong grabSongMetadata(JizzStation station, JizzSong song) {
        logger.trace("Looking up track info for song {}", song);

        JizzBlobReader blob = jizzBlobServices.retrieveBlob(station,
                song.getMasterBlobRef());
        JizzTrackInfo info = jizzTrackServices.getTrackInfo(blob);

        if (info != null) {
            song.setArtist(info.getArtist());
            song.setTitle(info.getTitle());

            logger.debug("Updating song with found artist '{}' and title '{}'",
                    song.getArtist(), song.getTitle());
            song = jizzSongDao.createOrUpdateSong(song);
        } else {
View Full Code Here

            try {
                logger.trace("Trying reader {}", reader);

                InputStream in = blob.getInputStream();
                try {
                    JizzTrackInfo info = reader.read(in);
                    if (logger.isDebugEnabled()) {
                        logger.debug("Reader " + reader
                                + " returned track info " + info + " for blob "
                                + blob);
                    }
View Full Code Here

TOP

Related Classes of com.totalchange.jizz.audio.JizzTrackInfo

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.