public interface AudioProcessor
AudioProcessors are responsible for actual digital signal processing. The interface is simple: a process method that works on an AudioEvent object. The AudioEvent contains a buffer with some floats and the same information in raw bytes.
AudioProcessors are meant to be chained e.g. execute an effect and then play the sound. The chain of audio processor can be interrupted by returning false in the process methods.
Modifier and Type | Method and Description |
---|---|
boolean |
process(AudioEvent audioEvent)
Process the audio event.
|
void |
processingFinished()
Notify the AudioProcessor that no more data is available and processing
has finished.
|
boolean process(AudioEvent audioEvent)
audioEvent
- The audio event that contains audio data.void processingFinished()