Tree-Axis ``` Processing  


Back  
Class   AudioChannel
   
Name  

stopFade()

   
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");
	
  // start the sound looping forever
  myChannel.play(Ess.FOREVER);
  
  // fade to silence over 10 seconds
  myChannel.fadeTo(0,10000);
}

void draw() {
}

void keyPressed() {
  // stop the fade and leave the volume where it is
  myChannel.stopFade();
}

// we are done, clean up Ess

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


Description   If an AudioChannel is actively fading as the result of fadeTo(), fading is terminated at the current volume
   
Syntax  
channel.stopFade()
   
Parameters  
channel   any instance of AudioChannel

   
Returns   nothing
   
Usage   Web & Application
   
 
 






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


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