1
0
Fork 0

Correction du bug de lecture d'un fichier Stereo au format OGG et ajout

de la compatibilité avec le format WAV
This commit is contained in:
Florian Richer (MrDev023) 2015-12-23 20:47:07 +01:00
parent 1a8e7de30f
commit b16ae5f1ab
3 changed files with 278 additions and 6 deletions

View file

@ -48,7 +48,6 @@ public class GameEngine {
Display.setMouseGrabbed(true);
try {
a = new Audio("res/audio/test.ogg");
System.err.println(a.getDurationInSeconds());
a.playSound();
} catch (Exception e) {
// TODO Auto-generated catch block
@ -85,7 +84,6 @@ public class GameEngine {
if(Timer.getMillisTime("info") >= 1000){
Display.setTitle(TITLE + " | Fps:" + FPS + " Ticks:" + TICKS + " | " + camera.getPos() + " " + camera.getRot());
System.out.println(a.getPosition());
FPS = 0;
TICKS = 0;
Timer.setValue("info", Timer.getNanoTime("info") - 1000000000);