import java.io.IOException;

import javax.sound.sampled.UnsupportedAudioFileException;

import net.beadsproject.beads.core.AudioContext;
import net.beadsproject.beads.data.AudioFile;


public class DurationTests {

	public static void main(String[] args) throws IOException, UnsupportedAudioFileException {
		String[] files = {
				"../BeadsTests/audio/gammaBrosTheme.mp3.aif",
				"../BeadsTests/audio/gammaBrosTheme.mp3",
				"D:/audio/Jyske Rugkiks - Svartbag Remix M01.wav",
				"D:/audio/Jyske Rugkiks - Svartbag Remix M01 - Copy.wav",
				"D:/audio/Jyske Rugkiks - Svartbag Remix M01 - Copy.aiff"
		};
			
		AudioContext ac = new AudioContext();
		
		for (String file: files)
		{
			AudioFile af = new AudioFile(file);
			af.open();
			System.out.println(af.info());			
			//System.out.printf("Length of \"%s\" = %fms\n",file,af.length);
		}
	}

}
