import javazoom.jl.player.*;
import java.io.*;


public class MP3PlayerThreadTest {
	
	/**
	 * Just for testing MP3PlayerThread
	 */
	public static void main( String[] args ) {

		// Instantiate new MP3Player
		MP3Player foobar = new MP3Player("C:\\foobar.mp3");
		
		// Start MP3Player
		foobar.start();
		
		// Print progress
		while (!foobar.isComplete()) {
			System.out.println(foobar.getPosition());
		}
		
	}
	
}
