Answers for "processing play sound"

-1

processing play sound

import processing.sound.*;

SoundFile sound;

void setup()
{
  sound = new SoundFile(this, "sound.wav"); //add audio files
}

void draw()
{
  if(playSound)
  {
    sound.Play(); //play audio
  }
}
Posted by: Guest on March-28-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language