public abstract class IIRFilter extends java.lang.Object implements AudioProcessor
calcCoeff()
function. When filling the coefficient
arrays, be aware that b[0]
corresponds to
b1
.Constructor and Description |
---|
IIRFilter(float freq,
float sampleRate)
Constructs an IIRFilter with the given cutoff frequency that will be used
to filter audio recorded at
sampleRate . |
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.
|
void |
setFrequency(float freq) |
public IIRFilter(float freq, float sampleRate)
sampleRate
.freq
- the cutoff frequencysampleRate
- the sample rate of audio to be filteredpublic void setFrequency(float freq)
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