Tree-Axis ``` Processing  


Back  
Class   AudioChannel
   
Name  

loop

   
Examples  
// Example by Krister Olsson

import krister.Ess.*;

AudioChannel myChannel;

void setup() {
  size(256,200);

  // start up Ess
  Ess.start(this);

  // load "cell.aif" into a new AudioChannel
  myChannel=new AudioChannel("cell.aif");

  // start the sound looping 5 times
  myChannel.play(5);
  
  // slow the framerate
  framerate(1);
}

void draw() {
  // are we looping?
  if (myChannel.loop>0) println(myChannel.loop);
}

// we are done, clean up Ess

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


Description   Contains the number of loops remaining (whether the AudioChannel is playing or not). If loop is equal to -1 (Ess.FOREVER) the channel is set to loop forever
   
Syntax  
channel.loop
   
Parameters  
channel   any instance of AudioChannel

   
Usage   Web & Application
   
 
 






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


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