Tree-Axis ``` Processing  


Back  
Class   AudioChannel
   
Name  

gain

   
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");

  // set its volume
  myChannel.volume(.5);

  // print the volume in decibels
  println(myChannel.gain);
}

void draw() {
}

// we are done, clean up Ess

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


Description   Contains an AudioChannel's volume in decibels. Each AudioChannel's playback volume is determined by its own volume multiplied by Ess.masterVolume
   
Syntax  
channel.gain
   
Parameters  
channel   any instance of AudioChannel

   
Usage   Web & Application
   
 
 






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


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