com.badlogic.gdx.audio.analysis
Class NativeFFT
java.lang.Object
com.badlogic.gdx.audio.analysis.NativeFFT
- All Implemented Interfaces:
- Disposable
public class NativeFFT
- extends java.lang.Object
- implements Disposable
A native implementation of the Fast Fourier Transform, directly ported from the FFT
class.
- Author:
- mzechner
Constructor Summary |
NativeFFT(int timeSize,
int sampleRate)
|
Method Summary |
void |
dispose()
Releases all resources of this object. |
void |
spectrum(java.nio.FloatBuffer samples,
java.nio.FloatBuffer spectrum,
int numSamples)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NativeFFT
public NativeFFT(int timeSize,
int sampleRate)
spectrum
public void spectrum(java.nio.FloatBuffer samples,
java.nio.FloatBuffer spectrum,
int numSamples)
dispose
public void dispose()
- Description copied from interface:
Disposable
- Releases all resources of this object.
- Specified by:
dispose
in interface Disposable
Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)