Main Page   Compound List   File List   Compound Members   File Members  

spectral.c File Reference

#include "netfone.h"

Defines

#define PSMOOTH   0.001
#define M_E   2.7182818284590452354
#define WM_UPDATE_SPECTRUM   (WM_USER + 1000)
#define SPECTRUM_INTERVAL   0
#define BLACKBIAS   100

Functions

void paintEnergy (HWND canvas)
void paintSpectrum (HWND canvas)
void clearCanvas (HWND canvas, COLORREF rgb)
void paintCanvas (HWND canvas, HBITMAP image)
void clearBitmap (HWND canvas, HBITMAP image, COLORREF rgb)
BOOL CALLBACK spectralDlgProc (HWND hwnd, UINT nMessage, WPARAM wParam, LPARAM lParam)
VOID spectralDialogue (HWND hwndParent)
void energy (short *samples, int nsamples, double *rms, double *emax)
void storeSample (short samp, BOOL isInput)
void spectrumUpdate (LPSTR buffer, WORD buflen, DWORD channels, DWORD rate, DWORD bytesec, WORD align, BOOL isInput)

Variables

int nbands = 128
int fftsize = 512
int logscale = TRUE
int logfreq = FALSE
short * samples = NULL
unsigned char * sourceSpectrum = NULL
int samps_in_buffer = 0
HBITMAP easel = NULL
HBITMAP weasel = NULL
double cEnergy = 0.0
double mEnergy = 0.0
int logEnergy = FALSE
int noiseFloor = 0
COLORREF ceColour = RGB(0, 255, 0)
BOOL spectrumChanged = TRUE
double * pspectrum = NULL
double pscale = 1.0
double escale = 0.0
int epposx = 0
BOOL spectrumBarGraph = TRUE
BOOL spectrumVoicePrint = FALSE
BOOL spectrumTransmitOnly = FALSE
BOOL spectrumReceiveOnly = FALSE
BOOL spectrumMaxEnergy = FALSE
BOOL paintingSpectrum = FALSE
int sgposx = 0
DWORD nextSpectrumTime = 0
BOOL disableShown = FALSE

Define Documentation

#define BLACKBIAS   100
 

#define M_E   2.7182818284590452354
 

#define PSMOOTH   0.001
 

#define SPECTRUM_INTERVAL   0
 

#define WM_UPDATE_SPECTRUM   (WM_USER + 1000)
 


Function Documentation

void clearBitmap HWND    canvas,
HBITMAP    image,
COLORREF    rgb
[static]
 

void clearCanvas HWND    canvas,
COLORREF    rgb
[static]
 

void energy short *    samples,
int    nsamples,
double *    rms,
double *    emax
[static]
 

void paintCanvas HWND    canvas,
HBITMAP    image
[static]
 

void paintEnergy HWND    canvas [static]
 

void paintSpectrum HWND    canvas [static]
 

VOID spectralDialogue HWND    hwndParent
 

BOOL CALLBACK spectralDlgProc HWND    hwnd,
UINT    nMessage,
WPARAM    wParam,
LPARAM    lParam
 

void spectrumUpdate LPSTR    buffer,
WORD    buflen,
DWORD    channels,
DWORD    rate,
DWORD    bytesec,
WORD    align,
BOOL    isInput
 

void storeSample short    samp,
BOOL    isInput
[static]
 


Variable Documentation

COLORREF ceColour = RGB(0, 255, 0) [static]
 

double cEnergy = 0.0 [static]
 

BOOL disableShown = FALSE [static]
 

HBITMAP easel = NULL [static]
 

int epposx = 0 [static]
 

double escale = 0.0 [static]
 

int fftsize = 512 [static]
 

int logEnergy = FALSE [static]
 

int logfreq = FALSE [static]
 

int logscale = TRUE [static]
 

double mEnergy = 0.0 [static]
 

int nbands = 128 [static]
 

DWORD nextSpectrumTime = 0 [static]
 

int noiseFloor = 0 [static]
 

BOOL paintingSpectrum = FALSE [static]
 

double pscale = 1.0 [static]
 

double* pspectrum = NULL [static]
 

short* samples = NULL [static]
 

int samps_in_buffer = 0 [static]
 

int sgposx = 0 [static]
 

unsigned char* sourceSpectrum = NULL [static]
 

BOOL spectrumBarGraph = TRUE
 

BOOL spectrumChanged = TRUE [static]
 

BOOL spectrumMaxEnergy = FALSE
 

BOOL spectrumReceiveOnly = FALSE
 

BOOL spectrumTransmitOnly = FALSE
 

BOOL spectrumVoicePrint = FALSE
 

HBITMAP weasel = NULL [static]
 


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