|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aurellem.capture.audio.CompositeSoundProcessor
public class CompositeSoundProcessor
Method of Combination for sound processors. This SoundProcessor will run the methods of each of its constituent SoundProcessors in the order in which it was constructed.
Constructor Summary | |
---|---|
CompositeSoundProcessor(SoundProcessor... processors)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeSoundProcessor(SoundProcessor... processors)
Method Detail |
---|
public void process(java.nio.ByteBuffer audioSamples, int numSamples, javax.sound.sampled.AudioFormat format)
SoundProcessor
process
in interface SoundProcessor
audioSamples
- a ByteBuffer containing processed audio
samplesnumSamples
- the number of samples, in bytes, that are validformat
- the format of the audio samples in audioSamplespublic void cleanup()
SoundProcessor
cleanup
in interface SoundProcessor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |