Mercurial > jmeCapture
comparison src/com/aurellem/capture/examples/AdvancedAudio.java @ 28:7184bc09a92e
need to solve audio recording clicks
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sun, 30 Oct 2011 10:00:29 -0700 |
parents | 5249c8a9603c |
children |
comparison
equal
deleted
inserted
replaced
27:5249c8a9603c | 28:7184bc09a92e |
---|---|
237 * Dance to the beat! This is the brain of an AI entity that | 237 * Dance to the beat! This is the brain of an AI entity that |
238 * hears it's surroundings and reacts to them. | 238 * hears it's surroundings and reacts to them. |
239 */ | 239 */ |
240 public void process(ByteBuffer audioSamples, AudioFormat format, int numSamples) { | 240 public void process(ByteBuffer audioSamples, AudioFormat format, int numSamples) { |
241 //System.out.println("I'm DANCING <3"); | 241 //System.out.println("I'm DANCING <3"); |
242 | |
243 | |
244 | |
242 entity.scale(this.scale); | 245 entity.scale(this.scale); |
243 if (this.scale == 2f){this.scale = 0.5f;} | 246 if (this.scale == 2f){this.scale = 0.5f;} |
244 else {this.scale = 2;} | 247 else {this.scale = 2;} |
245 } | 248 } |
246 | 249 |