Audacious  $Id:Doxyfile42802007-03-2104:39:00Znenolod$
Classes | Defines | Functions | Variables
fft.c File Reference
#include "fft.h"
#include <glib.h>
#include <stdlib.h>
#include <math.h>

Go to the source code of this file.

Classes

struct  fft_state

Defines

#define PI   3.14159265358979323846

Functions

static void fft_prepare (const sound_sample *input, float *re, float *im)
static void fft_calculate (float *re, float *im)
static void fft_output (const float *re, const float *im, float *output)
static int reverseBits (unsigned int initial)
fft_state * fft_init (void)
void fft_perform (const sound_sample *input, float *output, fft_state *state)
void fft_close (fft_state *state)

Variables

static unsigned int bitReverse [FFT_BUFFER_SIZE]
static float sintable [FFT_BUFFER_SIZE/2]
static float costable [FFT_BUFFER_SIZE/2]

Define Documentation

#define PI   3.14159265358979323846

Definition at line 46 of file fft.c.

Referenced by fft_init().


Function Documentation

static void fft_calculate ( float *  re,
float *  im 
) [static]

Definition at line 213 of file fft.c.

Referenced by fft_perform().

void fft_close ( fft_state *  state)

Definition at line 150 of file fft.c.

fft_state* fft_init ( void  )

Definition at line 96 of file fft.c.

Referenced by calc_freq().

static void fft_output ( const float *  re,
const float *  im,
float *  output 
) [static]

Definition at line 190 of file fft.c.

Referenced by fft_perform().

void fft_perform ( const sound_sample input,
float *  output,
fft_state *  state 
)

Definition at line 134 of file fft.c.

Referenced by calc_freq().

static void fft_prepare ( const sound_sample input,
float *  re,
float *  im 
) [static]

Definition at line 164 of file fft.c.

Referenced by fft_perform().

static int reverseBits ( unsigned int  initial) [static]

Definition at line 261 of file fft.c.

Referenced by fft_init().


Variable Documentation

unsigned int bitReverse[FFT_BUFFER_SIZE] [static]

Definition at line 74 of file fft.c.

Referenced by fft_init(), and fft_prepare().

float costable[FFT_BUFFER_SIZE/2] [static]

Definition at line 79 of file fft.c.

Referenced by fft_calculate(), and fft_init().

float sintable[FFT_BUFFER_SIZE/2] [static]

Definition at line 78 of file fft.c.

Referenced by fft_calculate(), and fft_init().