SinGenerator.h
上传用户:wen82zi81
上传日期:2007-01-03
资源大小:40k
文件大小:1k
- // SinGenerator.h: interface for the CSinGenerator class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_SINGENERATOR_H__27EF4E01_B2CD_11D2_8045_004005E3B23E__INCLUDED_)
- #define AFX_SINGENERATOR_H__27EF4E01_B2CD_11D2_8045_004005E3B23E__INCLUDED_
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- #include "SoundOut.h"
- class CSinGenerator : public CSoundOut
- {
- public:
- double fo ;
- double fs ;
- double wo ;
- SHORT Ampl;
- double m_2cosWo;
- double OutputBufferR[2][MAX_OUTPUT_SAMPLES];
- public:
- void Restart();
- void SetSinParametres(SHORT A, double ferq);
- virtual void ComputeSamples(SHORT *);
- void SetInitialConditions();
- CSinGenerator();
- virtual ~CSinGenerator();
- };
- #endif // !defined(AFX_SINGENERATOR_H__27EF4E01_B2CD_11D2_8045_004005E3B23E__INCLUDED_)