-
public final class FFTAudioAnalyzerA Fast Fourier Transform analyzer for audio bytes.
Use queueInput to add audio bytes, and collect on fftFlow to receive the analyzed frequencies.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classFFTAudioAnalyzer.Companion
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisActiveprivate final Flow<FloatArray>fftFlow
-
Constructor Summary
Constructors Constructor Description FFTAudioAnalyzer()
-
Method Summary
Modifier and Type Method Description final BooleangetIsActive()final Flow<FloatArray>getFftFlow()A flow of frequencies for the audio bytes given through queueInput. final Unitconfigure(AudioFormat inputAudioFormat)final Unitrelease()final UnitqueueInput(ByteBuffer inputBuffer)Add audio bytes to be processed. -
-
Method Detail
-
getIsActive
final Boolean getIsActive()
-
getFftFlow
final Flow<FloatArray> getFftFlow()
A flow of frequencies for the audio bytes given through queueInput.
-
configure
final Unit configure(AudioFormat inputAudioFormat)
-
queueInput
final Unit queueInput(ByteBuffer inputBuffer)
Add audio bytes to be processed.
-
-
-
-