javasound minim errors
in
Programming Questions
•
1 year ago
Hey there, so i'm working on a game in which pressing the space bar allows the user to change background songs. So far I have three songs, (song1, song2, and song3). However, when the game is playing song1 and the user presses the space bar, it skips song 2 and plays song 3. when the user presses the space bar again, it plays song1 like it's supposed to. below are my code for these operations and the error messages/ print statements.
help?
else if (key==' ') {
if (currentSong == 1) {
println("reached s1, before ++, cs: " + currentSong);
song1.close();
minim = new Minim(this);
song2 = minim.loadFile("tDream.mp3", 2048);
song2.loop();
currentSong=2;
println("reached s1++, cs: " + currentSong);
}
if (currentSong == 2) {
song2.close();
minim = new Minim(this);
song3 = minim.loadFile("pixi.mp3", 2048);
song3.loop();
currentSong=3;
println("reached s2++, cs: " + currentSong);
}
else if (currentSong == 3) {
song3.close();
minim = new Minim(this);
song1 = minim.loadFile("MoJu.mp3", 2048);
song1.loop();
currentSong=1;
println("reached s1++, cs: " + currentSong);
}
}
----------------------------------------------------------------
reached s1, before ++, cs: 1
reached s1++, cs: 2
==== JavaSound Minim Error ====
==== Don't know the ID3 code TXXX
==== JavaSound Minim Error ====
==== Don't know the ID3 code TXXX
==== JavaSound Minim Error ====
==== Don't know the ID3 code TXXX
==== JavaSound Minim Error ====
==== Don't know the ID3 code TDEN
==== JavaSound Minim Error ====
==== Don't know the ID3 code TSSE
reached s2++, cs: 3
reached s1++, cs: 1
reached s1, before ++, cs: 1
reached s1++, cs: 2
==== JavaSound Minim Error ====
==== Don't know the ID3 code TXXX
==== JavaSound Minim Error ====
==== Don't know the ID3 code TXXX
==== JavaSound Minim Error ====
==== Don't know the ID3 code TXXX
==== JavaSound Minim Error ====
==== Don't know the ID3 code TDEN
==== JavaSound Minim Error ====
==== Don't know the ID3 code TSSE
reached s2++, cs: 3
help?
else if (key==' ') {
if (currentSong == 1) {
println("reached s1, before ++, cs: " + currentSong);
song1.close();
minim = new Minim(this);
song2 = minim.loadFile("tDream.mp3", 2048);
song2.loop();
currentSong=2;
println("reached s1++, cs: " + currentSong);
}
if (currentSong == 2) {
song2.close();
minim = new Minim(this);
song3 = minim.loadFile("pixi.mp3", 2048);
song3.loop();
currentSong=3;
println("reached s2++, cs: " + currentSong);
}
else if (currentSong == 3) {
song3.close();
minim = new Minim(this);
song1 = minim.loadFile("MoJu.mp3", 2048);
song1.loop();
currentSong=1;
println("reached s1++, cs: " + currentSong);
}
}
----------------------------------------------------------------
reached s1, before ++, cs: 1
reached s1++, cs: 2
==== JavaSound Minim Error ====
==== Don't know the ID3 code TXXX
==== JavaSound Minim Error ====
==== Don't know the ID3 code TXXX
==== JavaSound Minim Error ====
==== Don't know the ID3 code TXXX
==== JavaSound Minim Error ====
==== Don't know the ID3 code TDEN
==== JavaSound Minim Error ====
==== Don't know the ID3 code TSSE
reached s2++, cs: 3
reached s1++, cs: 1
reached s1, before ++, cs: 1
reached s1++, cs: 2
==== JavaSound Minim Error ====
==== Don't know the ID3 code TXXX
==== JavaSound Minim Error ====
==== Don't know the ID3 code TXXX
==== JavaSound Minim Error ====
==== Don't know the ID3 code TXXX
==== JavaSound Minim Error ====
==== Don't know the ID3 code TDEN
==== JavaSound Minim Error ====
==== Don't know the ID3 code TSSE
reached s2++, cs: 3
1