Mercurial > jmeCapture
diff src/com/aurellem/capture/examples/AdvancedAudio.java @ 27:5249c8a9603c
changed SoundProcessors to use AudioFormat
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sun, 30 Oct 2011 08:10:26 -0700 |
parents | 25fcf5fda505 |
children | 7184bc09a92e |
line wrap: on
line diff
1.1 --- a/src/com/aurellem/capture/examples/AdvancedAudio.java Sun Oct 30 04:43:39 2011 -0700 1.2 +++ b/src/com/aurellem/capture/examples/AdvancedAudio.java Sun Oct 30 08:10:26 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, AudioFormat format, int numSamples) { 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;}