Sound.h
上传用户:sz83729876
上传日期:2013-03-07
资源大小:4140k
文件大小:1k
源码类别:

OpenGL

开发平台:

Windows_Unix

  1. #ifndef _SOUND_H_
  2. #define _SOUND_H_
  3. #include "Stdinc.h"
  4. #include "Singleton.h"
  5. #include "BassBassmod.h"
  6. class Sound : public Singleton<Sound>
  7. {
  8.     private:
  9.         
  10.         int         m_iFrequency;
  11.         bool        m_bForce8Bit;
  12.         
  13.         bool        m_bSongLoaded;
  14.     public:
  15.         bool Initialize( int iFreq, bool bForce8Bit );
  16.         void Cleanup();
  17.         bool SetInstSync( unsigned short sInst, SYNCPROC *proc );
  18.         bool LoadSong( std::string strFile );
  19.         bool Play();
  20.         bool Stop();
  21.         Sound();
  22.         ~Sound();
  23. };
  24. #endif