added new player and audiosample in package audio

This commit is contained in:
shebang
2014-11-13 23:46:51 +01:00
parent 174a0fae44
commit fccb3964c4
3 changed files with 14 additions and 0 deletions
+2
View File
@@ -5,5 +5,7 @@ public class Main {
public static void main(String[] args) { public static void main(String[] args) {
//new WavePlayer("<filetpath>").start(); //new WavePlayer("<filetpath>").start();
//new WavePlayer("audiosample.wav").start(); //new WavePlayer("audiosample.wav").start();
Sound.SAMPLE.play();
} }
} }
+12
View File
@@ -0,0 +1,12 @@
package de.heatup.audio;
import java.applet.Applet;
import java.applet.AudioClip;
public class Sound {
public static final AudioClip SAMPLE = Applet.newAudioClip(Sound.class.getResource("audiosample.wav"));
}
Binary file not shown.