WaveProcess.h
资源名称:AudioWave.rar [点击查看]
上传用户:huifengb
上传日期:2007-12-27
资源大小:334k
文件大小:2k
源码类别:
多媒体
开发平台:
Visual C++
- // WaveProcess.h: interface for the CWaveProcess class.
- //
- //////////////////////////////////////////////////////////////////////
- #include "FFT.h"
- #include "DCT.h"
- #include "math.h"
- #if !defined(AFX_WAVEPROCESS_H__23FC2C8D_4DD1_4A8A_937B_B3E24B604F3C__INCLUDED_)
- #define AFX_WAVEPROCESS_H__23FC2C8D_4DD1_4A8A_937B_B3E24B604F3C__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CWaveProcess
- {
- public:
- float MaxData(float *pfData, DWORD dwLenData);
- void WaveSignalFFT(float *pfSignal, DWORD dwLenSignal, int nPower, double *pdReFFT, double *pdImFFT);
- void WaveSignalFFT_I(float *pfSignal, DWORD dwLenSignal, int nPower, double *pdReFFT, double *pdImFFT);
- void WaveSignalDCTIV(float *pfSignal, float *pfDCT, DWORD dwLenSignal, int nPower);
- void WaveSignalIDCTIV(float *pfSignal, float *pfDCT, DWORD dwLenSignal, int nPower);
- void LowPass(float *pfSignal, DWORD dwLenSignal, int nStep);
- void HighPass(float *pfSignal, DWORD dwLenSignal, int nStep, int nTh, float fRate);
- void FFTLowFrequencyShift(float *pfSoundData, DWORD dwLenSound, int nShift, int nPower);
- void FFTHighFrequencyShift(float *pfSoundData, DWORD dwLenSound, int nShift, int nPower);
- void DCTLowFrequencyShift(float *pfSoundData, DWORD dwLenSound, int nShift, int nPower);
- void DCTHighFrequencyShift(float *pfSoundData, DWORD dwLenSound, int nShift, int nPower);
- void DCTMidFrequencyShift(float *pfSoundData, DWORD dwLenSound, int nShift, int nPower, float fRate);
- void Contraction(float *pfSoundData, DWORD dwLenSound, float fRate);
- CWaveProcess();
- virtual ~CWaveProcess();
- };
- #endif // !defined(AFX_WAVEPROCESS_H__23FC2C8D_4DD1_4A8A_937B_B3E24B604F3C__INCLUDED_)