public class Goertzel extends java.lang.Object implements AudioProcessor
Modifier and Type | Class and Description |
---|---|
static interface |
Goertzel.FrequenciesDetectedHandler
An interface used to react on detected frequencies.
|
Constructor and Description |
---|
Goertzel(float audioSampleRate,
int bufferSize,
double[] frequencies,
Goertzel.FrequenciesDetectedHandler handler) |
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.
|
public Goertzel(float audioSampleRate, int bufferSize, double[] frequencies, Goertzel.FrequenciesDetectedHandler handler)
public boolean process(AudioEvent audioEvent)
AudioProcessor
process
in interface AudioProcessor
audioEvent
- The audio event that contains audio data.public void processingFinished()
AudioProcessor
processingFinished
in interface AudioProcessor