
/**********************************************************************************
 *
 *  Compilation:  javac -cp .:stdplayer.jar MP3Player.java
 *  Execution:    java  -cp .:stdplayer.jar MP3Player file.mp3
 *  Dependencies: Wave.java
 *
 *  Plays an mp3 file specified as a command line input.
 *
 *  Note:  under Windows, replace the : with a ; when specifying the classpath.
 *  Note:  stdplayer.jar must be located in the current directory.
 *
 **********************************************************************************/


import javazoom.jl.player.StdPlayer;

public class MP3Player {
    public static void main(String[] args) 
    {
        String filename = "f://Melike Demiraš Arkadaž.mp3";//args[0];
        StdPlayer.open(filename);
        while (!StdPlayer.isEmpty()) {
            Wave w = new Wave(StdPlayer.getLeftChannel(), StdPlayer.getRightChannel());
            w.play();
        }
        StdPlayer.close();
        System.exit(0);
    }
}
