Package be.tarsos.dsp
Interface AudioProcessor
- All Known Implementing Classes:
AmplitudeLFO
,AmplitudeModulatedNoise
,AudioPlayer
,AutoCorrelation
,BandPass
,BeatRootSpectralFluxOnsetDetector
,BitDepthProcessor
,ComplexOnsetDetector
,ConstantQ
,Daubechies4WaveletCoder
,Daubechies4WaveletDecoder
,DelayEffect
,DetermineDurationProcessor
,EnvelopeFollower
,FadeIn
,FadeOut
,FlangerEffect
,GainProcessor
,GeneralizedGoertzel
,Goertzel
,Granulator
,HaarWaveletCoder
,HaarWaveletDecoder
,HaarWaveletFileReader
,HaarWaveletFileWriter
,HighPass
,IIRFilter
,LowPassFS
,LowPassSP
,MFCC
,MultichannelToMono
,NoiseGenerator
,OptimizedGranulator
,Oscilloscope
,PercussionOnsetDetector
,PitchProcessor
,PitchShifter
,RateTransposer
,SilenceDetector
,SineGenerator
,SoundTouchRateTransposer
,SpectralPeakProcessor
,StopAudioProcessor
,WaveformSimilarityBasedOverlapAdd
,WaveformWriter
,WriterProcessor
,ZeroCrossingRateProcessor
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.
- Author:
- Joren Six
-
Method Summary
Modifier and Type Method Description boolean
process(AudioEvent audioEvent)
Process the audio event.void
processingFinished()
Notify the AudioProcessor that no more data is available and processing has finished.
-
Method Details
-
process
Process the audio event. Do the actual signal processing on an (optionally) overlapping buffer.- Parameters:
audioEvent
- The audio event that contains audio data.- Returns:
- False if the chain needs to stop here, true otherwise. This can be used to implement e.g. a silence detector.
-
processingFinished
void processingFinished()Notify the AudioProcessor that no more data is available and processing has finished. Can be used to deallocate resources or cleanup.
-