loop() stereo soundfile with processing sound library

edited November 2016 in Library Questions

Hi. I've just startede using the sound library in Processing 3, but I'm having trouble with it.

Whenever i try to make a stereo soundfile loop it plays once and stops.

I've tried using, .wav, .aif and .mp3 but none of them works in stereo – only in mono.

Anyone found a fix for this?

`import processing.sound.*; SoundFile soundscape;

void setup() { size(640, 360); background(255);

// Load a soundfile from the /data folder of the sketch and play it back soundscape = new SoundFile(this, "soundscape.wav"); soundscape.loop(); }

void draw() { }`

Sign In or Register to comment.