Tree-Axis ``` Processing  


Back  
Class   Ess
   
Name  

Ess.masterVolume

   
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() {
  // set the master volume to a random number
  Ess.masterVolume(random(1));
  
  // print the new volume
  println(Ess.masterVolume);
}

// we are done, clean up Ess

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


Description   Contains the current master volume (between 0 and 1). Each AudioChannel's and AudioStream's playback volume is determined by its own volume multiplied by the master volume
   
Syntax  
Ess.masterVolume
   
Usage   Web & Application
   
 
 






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


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