在JAVA中使用简单的音频文件可以通过文库sun.audio来被处理:
import sun.audio.*;
public class AudioExample{
string mFlie="/Users/music.au";
InputStream in=
new FileInputStream(mFile);
AudioStream as=
new AudioStream(in);
AudioPlayer.player.start(as);
}
在JAVA中使用简单的音频文件可以通过文库sun.audio来被处理:
import sun.audio.*;
public class AudioExample{
string mFlie="/Users/music.au";
InputStream in=
new FileInputStream(mFile);
AudioStream as=
new AudioStream(in);
AudioPlayer.player.start(as);
}