diff src/com/aurellem/capture/examples/AdvancedAudio.java @ 30:be37291c62b8

propagated AudioFormat to other classes.
author Robert McIntyre <rlm@mit.edu>
date Sun, 30 Oct 2011 10:11:21 -0700
parents 25fcf5fda505
children c4bfbf5d090e
line wrap: on
line diff
     1.1 --- a/src/com/aurellem/capture/examples/AdvancedAudio.java	Sun Oct 30 10:06:38 2011 -0700
     1.2 +++ b/src/com/aurellem/capture/examples/AdvancedAudio.java	Sun Oct 30 10:11:21 2011 -0700
     1.3 @@ -3,6 +3,8 @@
     1.4  import java.io.File;
     1.5  import java.nio.ByteBuffer;
     1.6  
     1.7 +import javax.sound.sampled.AudioFormat;
     1.8 +
     1.9  import com.aurellem.capture.IsoTimer;
    1.10  import com.aurellem.capture.audio.MultiListener;
    1.11  import com.aurellem.capture.audio.SoundProcessor;
    1.12 @@ -235,7 +237,7 @@
    1.13  	   * Dance to the beat!  This is the brain of an AI entity that 
    1.14  	   * hears it's surroundings and reacts to them.
    1.15  	   */
    1.16 -	  public void process(ByteBuffer audioSamples, int numSamples) {
    1.17 +	  public void process(ByteBuffer audioSamples, int numSamples, AudioFormat format) {
    1.18  		  //System.out.println("I'm DANCING <3");
    1.19  		  entity.scale(this.scale);
    1.20  		  if (this.scale == 2f){this.scale = 0.5f;}