SoundBase.h
资源名称:fister.zip [点击查看]
上传用户:zjb_0001
上传日期:2007-01-11
资源大小:154k
文件大小:1k
源码类别:
Audio
开发平台:
Visual C++
- // SoundBase.h: interface for the CSoundBase class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_SOUNDBASE_H__041D24CC_3A2F_4E33_AAB9_6C98297DAC59__INCLUDED_)
- #define AFX_SOUNDBASE_H__041D24CC_3A2F_4E33_AAB9_6C98297DAC59__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include <mmsystem.h>
- #include "buffer.h"
- class CSoundBase
- {
- public:
- WAVEFORMATEX* GetFormat();
- int GetBufferSize();
- void SetBufferSize(int NumberOfSamples);
- int GetNumberOfChannels();
- void SetNumberOfChannels(int nchan);
- int GetSamplesPerSecond();
- void SetSamplesPerSecond(int sps);
- int GetBitsPerSample();
- void SetBitsPerSample(int bps);
- CSoundBase();
- virtual ~CSoundBase();
- protected:
- WAVEFORMATEX m_Format;
- int m_BufferSize; // number of samples
- private:
- void Update();
- };
- #endif // !defined(AFX_SOUNDBASE_H__041D24CC_3A2F_4E33_AAB9_6C98297DAC59__INCLUDED_)