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.AudioProcessor
Process the audio event. Do the actual signal processing on an (optionally) overlapping buffer.- Specified by:
process
in 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.AudioProcessor
Notify the AudioProcessor that no more data is available and processing has finished. Can be used to deallocate resources or cleanup.- Specified by:
processingFinished
in interfacebe.tarsos.dsp.AudioProcessor
-
getFingerprints
-
getEventPoints
-
reset
public void reset()
-