public void playSound(String file_url)
{
try{
File file = new File(file_url);
FileInputStream fis = new FileInputStream(file);
AudioStream as = new AudioStream(fis);
AudioPlayer.player.start(as);
}catch(Exception e){
e.printStackTrace();
System.out.println("sound exception");
}
}
- mid, wav등의 파일만 재생됩니다.