public class Mp3Player{
public static void main(String args[]) {
try {
FileInputStream fileau = new FileInputStream(new File("f:/tmp/ss.wav"));
AudioStream as=new AudioStream(fileau);
AudioPlayer.player.start(as);
}
catch (Exception e) {}
}
}
可以运行播放f:/tmp/ss.wav 文件。
标签:tmp,Java,wav,音频文件,fileau,FileInputStream,new,AudioStream,运行 From: https://blog.51cto.com/u_16298170/7947901