// Example by Krister Olsson
import krister.Ess.*;
void setup() {
size(256,200);
// start up Ess
Ess.start(this);
// print our active AudioInput
// this is null because we haven't created an input yet
println(Ess.activeAudioInput);
// now create an AudioInput, start it, and print
AudioInput tempInput=new AudioInput();
tempInput.start();
println(Ess.activeAudioInput);
// stop it
tempInput.stop();
}
void draw() {
}
// we are done, clean up Ess
public void stop() {
Ess.stop();
super.stop();
}
|