|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.badlogic.gdx.audio.analysis.KissFFT
public class KissFFT
A class for spectral analysis using native KissFFT
Constructor Summary | |
---|---|
KissFFT(int numSamples)
Creates a new fft instance that can analyse numSamples samples. |
Method Summary | |
---|---|
void |
dispose()
Releases all resources of this object |
void |
getImagPart(java.nio.ShortBuffer imag)
|
void |
getRealPart(java.nio.ShortBuffer real)
|
void |
spectrum(java.nio.ShortBuffer samples,
java.nio.FloatBuffer spectrum)
Calculates the frequency spectrum of the given samples. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KissFFT(int numSamples)
numSamples
- the number of samples to be analysed.Method Detail |
---|
public void spectrum(java.nio.ShortBuffer samples, java.nio.FloatBuffer spectrum)
samples
- the samplesspectrum
- the spectrumpublic void dispose()
dispose
in interface Disposable
public void getRealPart(java.nio.ShortBuffer real)
public void getImagPart(java.nio.ShortBuffer imag)
|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |