Tree-Axis ``` Processing  


Back  
Name  

audioStreamWrite()

   
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");
	
  // play 2 times
  myChannel.play(2);
}

void draw() {
}

void audioChannelLoop(AudioChannel ch) {
  println("AudioChannel "+ch+" has just looped.");
}

// we are done, clean up Ess

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


Description   Called whenever an AudioStream's buffer has been sent to the playback engine and the stream is ready for more data
   
Syntax  
audioStreamWrite(stream)
   
Parameters  
stream   the AudioStream requesting data

   
Returns   nothing
   
Usage   Web & Application
   
 
 






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


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