Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Minim Loop when If(true)

$
0
0
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...


Viewing all articles
Browse latest Browse all 2896

Trending Articles