package song002;
import javax.sound.sampled.*;
//https://www.cnblogs.com/wangjunxiao/p/6662389.html
public class EarlyStopDemo {
private Clip clip;
public void go() throws Exception {
AudioInputStream audioInputStream =
AudioSystem.getAudioInputStream(
new java.io.File("D:\\adt-bundle-windows-x86-20130917.467161976\\SongJframeTextAreaFileWriter\\SoundTest.wav"));
//new java.io.File("D:\\adt-bundle-windows-x86-20130917.467161976\\SongJframeTextAreaFileWriter\\ec.wav"));
/***
* WAV是微软公司开发的一种音频格式文件,用于保存Windows平台的音频信息资源,
* 它符合资源互换文件格式(Resource Interchange File Format,RIFF)文件规范。
*
*
*/
DataLine.Info info =
new DataLine.Info(Clip.class, audioInputStream.getFormat());