Package be.panako.strategy.olaf
Class OlafEventPointProcessor
java.lang.Object
be.panako.strategy.olaf.OlafEventPointProcessor
- All Implemented Interfaces:
be.tarsos.dsp.AudioProcessor
-
Constructor Details
-
OlafEventPointProcessor
public OlafEventPointProcessor(int fftSize)
-
-
Method Details
-
process
public boolean process(be.tarsos.dsp.AudioEvent audioEvent) Description copied from interface:be.tarsos.dsp.AudioProcessorProcess the audio event. Do the actual signal processing on an (optionally) overlapping buffer.- Specified by:
processin interfacebe.tarsos.dsp.AudioProcessor- 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.
-
getMagnitudes
public float[] getMagnitudes() -
processingFinished
public void processingFinished()Description copied from interface:be.tarsos.dsp.AudioProcessorNotify the AudioProcessor that no more data is available and processing has finished. Can be used to deallocate resources or cleanup.- Specified by:
processingFinishedin interfacebe.tarsos.dsp.AudioProcessor
-
getFingerprints
-
getEventPoints
-
reset
public void reset()
-