Hello, I was just wondering if anyone knows why my sound won't loop, I am trying to make background music but it won't loop. Any help would be great, thanks.
(I know it's just the default processing sound code, but it doesn't work on either programs I tried.)
import processing.sound.*;
SoundFile file;
void setup() {
size(640, 360);
background(255);
// Load a soundfile from the data folder of the sketch and play it back in a loop
file = new SoundFile(this, "sample.mp3");
file.loop();
}
void draw() {
}