Tree-Axis ``` Processing  


Back  
Class   AudioChannel
   
Name  

resume()

   
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 pause/resume sound
  if (myChannel.state==Ess.STOPPED) myChannel.resume();
  else myChannel.pause();
}

// we are done, clean up Ess

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


Description   Playback resumes from cue. Playback loops based on the number of loops remaining when the AudioChannel was stopped or paused. Sets state to Ess.PLAYING
   
Syntax  
channel.resume()
   
Parameters  
channel   any instance of AudioChannel

   
Returns   nothing
   
Usage   Web & Application
   
 
 






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


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