AudioRec.h
资源名称:网络视频电话系统.rar [点击查看]
上传用户:oldpeter23
上传日期:2013-01-09
资源大小:1111k
文件大小:1k
源码类别:
IP电话/视频会议
开发平台:
Visual C++
- //NetTalk
- /*------------------------------------------------------------------------------*
- =============================
- 模块名称: AudioRec.h
- =============================
- [版权]
- 2000-2002 115软件工厂 版权所有
- *------------------------------------------------------------------------------*/
- #ifndef _AUDIOREC_H_
- #define _AUDIOREC_H_
- #include "WaveIn.h"
- #define NUM_BUF 10
- #define SAMPLE_PER_PACK 240
- //////////////
- class CAudioRec:public CWaveIn
- {
- public:
- BOOL Destroy();
- BOOL Create(WAVEFORMATEX *pwf,DWORD dwCallBack,DWORD dwInst,DWORD fdwOpen ,DWORD dwBufSize);
- BOOL Start();
- BOOL Stop();
- CAudioRec();
- virtual ~CAudioRec();
- protected:
- WAVEHDR* m_pHdr;
- BOOL FreeBuffer();
- BOOL AllocBuffer();
- UINT m_nBufSize;
- };
- #endif