mirror of
https://github.com/jokerx3/HeatUp
synced 2026-07-27 09:09:46 +02:00
added new player and audiosample in package audio
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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