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

Sound in processing program

$
0
0

Hello,
I am trying to generate a sound as part of a processing program.
I have tried the code below but it does not work.
I tried to store my sound file (Surf.wav) in a 'data' folder but still does not work.
I use 'filezilla' to load my sketch, so I have created the data folder below the 'public' folder.
I don't get any error message, just sound does not play.
Thanks for your help.

Vincent

code:

import ddf.minim.*;
Minim minim;
AudioPlayer player;
void setup() {
    minim = new Minim(this);
    player = minim.loadFile("data/Surf.wav");
    player.play();

Viewing all articles
Browse latest Browse all 2896

Trending Articles