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

Processing.sound looping SoundFile

$
0
0

I want to loop a SounFile so that it starts over once the SoundFile plays. What am I doing wrong?

void mouseReleased() {
 if (mouseX > 25 && mouseX < 75 && mouseY > 25 && mouseY < 75) {
     if (value1 == 0)
      Sewer.loop();
    else
    Sewer.stop();
  }
}

I've also tried different variations like

void mouseReleased() {
 if (mouseX > 25 && mouseX < 75 && mouseY > 25 && mouseY < 75) {
     if (value1 == 0)
loop();
      Sewer.play();
    else
    Sewer.stop();
  }
}

Viewing all articles
Browse latest Browse all 2896

Trending Articles