/**
 * MP3 Player Thead Test
 * 
 * Just tests the MP3Player class
 * 
 * Created by Philip Peng
 * Last updated: 2007/10/09
 * 
 * Licensed under GNU GPL (Version 3):
 * http://www.gnu.org/licenses/gpl.txt
 * 
 */

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

		// Test MP3 file
		String file = "C:\\foobar.mp3";
		
		// Instantiate new MP3Player
		MP3Player foobar = new MP3Player(file);
		
		// Start MP3Player
		foobar.start();
		
		// Start playback
		System.out.println("========================================");
		System.out.println("Starting playback of " + file);
		System.out.println("========================================");
		
		// Print progress
		while (!foobar.isComplete()) {
			System.out.println(foobar.getPosition());
		}
		
		// Finish playback
		System.out.println("========================================");
		System.out.println("Finished playback of " + file);
		System.out.println("========================================");
		
	}
	
}
