Tree-Axis ``` Processing  


Back  
Class   AudioChannel
   
Name  

mute()

   
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 forever
  myChannel.play(Ess.FOREVER);
}

void draw() {
}

void keyPressed() {
  // toggle mute
  myChannel.mute(!myChannel.mute);
}

// we are done, clean up Ess

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


Description   Sets an AudioChannel's mute state. If an AudioChannel is muted it will not produce any sound
   
Syntax  
channel.mute(mute)
   
Parameters  
channel   any instance of AudioChannel

mute   boolean: to mute or not to mute

   
Returns   nothing
   
Usage   Web & Application
   
 
 






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


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