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

loop() stereo soundfile with processing sound library

$
0
0

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() { }`


Viewing all articles
Browse latest Browse all 2896

Trending Articles