com.aurellem.capture.audio
Interface SoundProcessor

All Known Implementing Classes:
Advanced.Dancer, CompositeSoundProcessor, WaveFileWriter

public interface SoundProcessor


Method Summary
 void cleanup()
          Called when the SoundProcessor is being destroyed, and there are no more samples to process.
 void process(java.nio.ByteBuffer audioSamples, int numSamples, javax.sound.sampled.AudioFormat format)
          Called whenever there are new audio samples to process.
 

Method Detail

cleanup

void cleanup()
Called when the SoundProcessor is being destroyed, and there are no more samples to process. This happens at the latest when the Application is shutting down.


process

void process(java.nio.ByteBuffer audioSamples,
             int numSamples,
             javax.sound.sampled.AudioFormat format)
Called whenever there are new audio samples to process. The audioSamples ByteBuffer contains 3D audio data rendered by OpenAL.

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