www.pudn.com > AudioTest.rar > WaveAnalysis.h
// WaveAnalysis.h: interface for the CWaveAnalysis class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_WAVEANALYSIS_H__84B0C621_E125_44ED_B064_CEDDC610A62A__INCLUDED_)
#define AFX_WAVEANALYSIS_H__84B0C621_E125_44ED_B064_CEDDC610A62A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define HANNING_WIDOW 1
#define HAMMING_WINDOW 2
#define BLACKMAN_WINDOW 3
#define BLACKMAN_HARRIS_WINDOW 4
#define BARTLETT_WINDOW 5
class CWaveAnalysis
{
public:
int which_window;
int is_db;
long samplingfreq;// = 11025;
double *power;
void FftCal(double* InW, int N, double *p_power);
void FftCal(BYTE* InW, int N, double *p_power);
void FftDraw(CPaintDC &dc, int x0, int y0,int yzoom,double* Xfr, int N);
public:
CWaveAnalysis();
virtual ~CWaveAnalysis();
};
#endif // !defined(AFX_WAVEANALYSIS_H__84B0C621_E125_44ED_B064_CEDDC610A62A__INCLUDED_)