// Example by Krister Olsson
import krister.Ess.*;
AudioChannel myChannel;
void setup() {
// start up Ess
Ess.start(this);
// load "cell.aif" into a new AudioChannel
myChannel=new AudioChannel("cell.aif");
// play
myChannel.play();
}
void draw() {
}
void audioChannelDone(AudioChannel ch) {
println("AudioChannel "+ch+" is done playing.");
}
// we are done, clean up Ess
public void stop() {
Ess.stop();
super.stop();
}
|