We are about to switch to a new forum software. Until then we have removed the registration on this forum.
import ddf.minim.*;
Minim minim;
AudioPlayer player;
void setup() {
minim = new Minim(this);
player = minim.loadFile("alert.mp3");
}
void draw() {
if (true) {
player.loop();
}
}
I want to do when If statement is true let the song loop. But, It always stay at first second, don't go around.
I have tried rewind + play, it has same problem. I want to loop, when If is true.
help me...
Answers
I already solved it.