예제 #1
0
  public void setup() {
    size(200, 200);
    // Start Sonia engine.
    Sonia.start(this);

    // Create a new sample object.
    tone = new Sample("tone.wav");

    // Loop the sound forever
    // (well, at least until stop() is called)
    tone.repeat();
    smooth();
  }
예제 #2
0
 // Close the sound engine
 public void stop() {
   Sonia.stop();
   super.stop();
 }