added new player and audiosample in package audio
This commit is contained in:
1 parent
174a0fae44
commit
fccb3964c4
3 files changed
+14
No files matched your search
@@ -5,5 +5,7 @@ public class Main {
|
||||
public static void main(String[] args) {
|
||||
//new WavePlayer("<filetpath>").start();
|
||||
//new WavePlayer("audiosample.wav").start();
|
||||
|
||||
Sound.SAMPLE.play();
|
||||
}
|
||||
}
|
||||
@@ -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.
Reference in new issue
Block a user