public void execute(int globalTime) { if (!ap.isPlaying()) { int playAt = globalTime - timeStamp; ap.play(playAt); println("gTime is " + globalTime + " delTime is " + playAt); } }
public void pauseAudio() { ap.pause(); }