#navi(contents-page-name): No such page: ST

Terai Atsuhiro 2021-03-14 (日) 19:51:22

URL url = this.getClass().getResource("notice1.wav");
AudioInputStream sound = AudioSystem.getAudioInputStream(url);
AudioFormat format = sound.getFormat();
DataLine.Info di = new DataLine.Info(Clip.class, format);
Clip clip = (Clip) AudioSystem.getLine(di);
clip.open(sound);
clip.start();