Package com.tulskiy.musique.audio

Examples of com.tulskiy.musique.audio.AudioFileReader


                        file = (File) top;

                    if (recurse && file.isDirectory()) {
                        queue.addAll(0, Arrays.asList(file.listFiles()));
                    } else if (file.isFile()) {
                        AudioFileReader reader = TrackIO.getAudioFileReader(file.getName());
                        if (reader != null) {
                            if (!Util.getFileExt(file).equals("cue")) {
                                String name = Util.removeExt(file.getAbsolutePath()) + ".cue";
                                if (new File(name).exists()) {
                                    continue;
                                }
                            }
                            reader.read(file, temp);
                        }
                    }
                }
            } catch (Exception ignored) {
            }
View Full Code Here


                    if (!embedded) {
                        String parent = file.getTrackData().getFile().getParent();
                        File referencedFile = new File(parent, fileData.getFile());
                        if (!referencedFile.exists())
                            continue;
                        AudioFileReader reader = TrackIO.getAudioFileReader(referencedFile.getName());
                        if (reader == null) break;
                        file = reader.read(referencedFile);
                    }

                    int size = fileData.getTrackData().size();
                    for (int i = 0; i < size; i++) {
                        TrackData trackData = fileData.getTrackData().get(i);
View Full Code Here

                            if (abort)
                                break;
                            if (trackData.isFile() && trackData.getSubsongIndex() == 0) {
                                currentTrack = trackData.getFile().getName();
                                progress = (float) i / tracks.size();
                                AudioFileReader reader = TrackIO.getAudioFileReader(trackData.getFile().getName());
                                trackData.clearTags();
                                reader.reload(track);
                            }
                        }
                        playlist.firePlaylistChanged();
                    }
View Full Code Here

TOP

Related Classes of com.tulskiy.musique.audio.AudioFileReader

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.