Main Page   Compound List   File List   Compound Members   File Members  

spectrum.c File Reference

#include "netfone.h"

Compounds

struct  complex

Defines

#define PI2   6.283185307179586476925287
#define MAXSAMPS   8192
#define SAMPLE   short

Functions

BOOL buildtable (int ln)
void bitreverse (complex *x, int ln)
void fft (complex *x, int ln)
double spectrum (SAMPLE *samples, int nsamples, double *ps, int nfreqs, double maxpwr)
void spectrumEnd (void)

Variables

complexc = NULL
int pwr_two []
int fftsize = -1

Define Documentation

#define MAXSAMPS   8192
 

#define PI2   6.283185307179586476925287
 

#define SAMPLE   short
 


Function Documentation

void bitreverse complex   x,
int    ln
[static]
 

BOOL buildtable int    ln [static]
 

void fft complex   x,
int    ln
[static]
 

double spectrum SAMPLE *    samples,
int    nsamples,
double *    ps,
int    nfreqs,
double    maxpwr
 

void spectrumEnd void   
 


Variable Documentation

complex* c = NULL [static]
 

int fftsize = -1 [static]
 

int pwr_two[] [static]
 

Initial value:

 {
            1,           2,            4,           8,
           16,          32,           64,         128,
          256,         512,         1024,        2048,
             4096,        8192,        16384,       32768,
            65536,      131072,       262144,      524288,
          1048576,     2097152,      4194304,     8388608,
         16777216,        33554432,     67108864,       134217728,
        268435456,       536870912,   1073741824
}


Generated on Tue Feb 10 08:26:36 2004 for Speak-FreelyforWindows by doxygen1.2.18