mirror of
https://github.com/jokerx3/HeatUp
synced 2026-07-27 09:09:46 +02:00
deleted changes
This commit is contained in:
@@ -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