deleted changes

This commit is contained in:
shebang
2014-11-13 23:38:14 +01:00
parent 47512d3fef
commit 174a0fae44
3 changed files with 2 additions and 16 deletions
+1 -1
View File
@@ -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();
} }
} }
-14
View File
@@ -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) {
}
}
+1 -1
View File
@@ -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);