public int read(File trackFile) {
Debug.printObject("enter TrackModel.read : " + trackFile.getName());
MixFile mixFile = new MixFile(trackFile);
try {
MixFileData v = mixFile.read();
// For each entry in MIX file, assign a Track.
for (int i = 0; i < v.getNumberOfTracks(); i++) {
MixTrackData d = (MixTrackData) v.getMixTrackData(i);
assignTrack(d.mediaFileName,
d.startTime,
d.playingTime);
}
} catch (Exception e) {