자바 음향효과(BGM)


AudioClip clip;
try {
    File file = new File("resources/bgm/bgm.wav");
    clip = Applet.newAudioClip(file.toURL());
    clip.play();
} catch (Exception e) {
    e.printStackTrace();
}