Performs 1D FFTs.
More...
|
| AudioFFT () |
| Constructor.
|
|
void | fft (const float *data, float *re, float *im) |
| Performs the forward FFT. More...
|
|
void | ifft (float *data, const float *re, const float *im) |
| Performs the inverse FFT. More...
|
|
void | init (size_t size) |
| Initializes the FFT object. More...
|
|
| ~AudioFFT () |
| Destructor.
|
|
|
static size_t | ComplexSize (size_t size) |
| Calculates the necessary size of the real/imaginary complex arrays. More...
|
|
size_t ComplexSize |
( |
size_t |
size | ) |
|
|
static |
Calculates the necessary size of the real/imaginary complex arrays.
- Parameters
-
size | The size of the real data |
- Returns
- The size of the real/imaginary complex arrays
void fft |
( |
const float * |
data, |
|
|
float * |
re, |
|
|
float * |
im |
|
) |
| |
Performs the forward FFT.
- Parameters
-
data | The real input data (has to be of the length as specified in init()) |
re | The real part of the complex output (has to be of length as returned by ComplexSize()) |
im | The imaginary part of the complex output (has to be of length as returned by ComplexSize()) |
void ifft |
( |
float * |
data, |
|
|
const float * |
re, |
|
|
const float * |
im |
|
) |
| |
Performs the inverse FFT.
- Parameters
-
data | The real output data (has to be of the length as specified in init()) |
re | The real part of the complex input (has to be of length as returned by ComplexSize()) |
im | The imaginary part of the complex input (has to be of length as returned by ComplexSize()) |
Initializes the FFT object.
- Parameters
-
size | Size of the real input (must be power 2) |