2 u013901226 u013901226 于 2014.04.14 00:18 提问

java application 播放wav文件为什么出来的都是噪音,怎么处理呢

package shanyi;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.*;

import sun.audio.*;
public class Mysound{
public Mysound(){

try {
InputStream in = new FileInputStream("111.wav");
//AudioStream as = new AudioStream(in);
AudioPlayer.player.start(in);
//AudioPlayer.player.stop(as);
}catch(FileNotFoundException e){
}
catch(IOException e){
}
}
public static void main(String[] args) {
new Mysound();
}

}

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!