Tree-Axis ``` Processing  


Back  
Name  

audioChannelLoop()

   
Examples  
// 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 2 times
  myChannel.play(2);
}

void draw() {
}

void audioChannelLoop(AudioChannel ch) {
  println("AudioChannel "+ch+" has just looped.");
}

// we are done, clean up Ess

public void stop() {
  Ess.stop();
  super.stop();
}


Description   Called whenever an AudioChannel loops. Because of the way the the playback engine buffers sound, audioChannelLoop() may be called a fraction of a second after an AudioChannel has already looped
   
Syntax  
audioChannelLoop(channel)
   
Parameters  
channel   the AudioChannel that has just looped

   
Returns   nothing
   
Usage   Web & Application
   
 
 






   
 
Updated: Tue May 31 04:52:43 PDT 2006


 
  Questions, comments, corrections: e-mail Krister Olsson.