deleted changes
This commit is contained in:
1 parent
47512d3fef
commit
174a0fae44
3 files changed
+2
-16
No files matched your search
@@ -4,6 +4,6 @@ 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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
package de.heatup.audio;
|
|
||||||
|
|
||||||
public class Play {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Praktisch wäre eine bindung von GameObject mit einem Sound
|
|
||||||
* dann könnte der entsprechende Sound einfach über das Object gespielt werden ohne jedesmal
|
|
||||||
* einen bestimmten pfand angeben zu müssen ?
|
|
||||||
* */
|
|
||||||
public void Play(String filename) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -51,7 +51,7 @@ public class WavePlayer extends Thread {
|
|||||||
AudioInputStream audioInputStream = null;
|
AudioInputStream audioInputStream = null;
|
||||||
try {
|
try {
|
||||||
//audioInputStream = AudioSystem.getAudioInputStream(soundFile);
|
//audioInputStream = AudioSystem.getAudioInputStream(soundFile);
|
||||||
String path = "de/heatup/resources/audio/" + filename;
|
String path = "/resources/audio/" + filename;
|
||||||
File f = new File(path);
|
File f = new File(path);
|
||||||
if(!f.exists()) {
|
if(!f.exists()) {
|
||||||
System.err.println("File not found: " + path);
|
System.err.println("File not found: " + path);
|
||||||
|
|||||||
Reference in new issue
Block a user