PROCESSING SOUND AND VIDEO LIBRARY code example
Example: processing sound library
import processing.sound.*;
SoundFile sound;
void setup()
{
sound = new SoundFile(this, "sound.wav"); //add audio files
}
void draw()
{
if(playSound)
{
sound.Play(); //play audio
}
}