com.aurellem.capture.examples
Class Advanced.Dancer

java.lang.Object
  extended by com.aurellem.capture.examples.Advanced.Dancer
All Implemented Interfaces:
SoundProcessor
Enclosing class:
Advanced

public class Advanced.Dancer
extends java.lang.Object
implements SoundProcessor


Constructor Summary
Advanced.Dancer(com.jme3.scene.Geometry entity)
           
 
Method Summary
 void cleanup()
          this method is irrelevant since there is no state to cleanup.
 void process(java.nio.ByteBuffer audioSamples, int numSamples, javax.sound.sampled.AudioFormat format)
          Respond to sound! This is the brain of an AI entity that hears it's surroundings and reacts to them.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Advanced.Dancer

public Advanced.Dancer(com.jme3.scene.Geometry entity)
Method Detail

cleanup

public void cleanup()
this method is irrelevant since there is no state to cleanup.

Specified by:
cleanup in interface SoundProcessor

process

public void process(java.nio.ByteBuffer audioSamples,
                    int numSamples,
                    javax.sound.sampled.AudioFormat format)
Respond to sound! This is the brain of an AI entity that hears it's surroundings and reacts to them.

Specified by:
process in interface SoundProcessor
Parameters:
audioSamples - a ByteBuffer containing processed audio samples
numSamples - the number of samples, in bytes, that are valid
format - the format of the audio samples in audioSamples