Advertisement
Guest User

Untitled

a guest
Jun 12th, 2012
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1.  class CSound
  2.         {
  3.             public:
  4.                 CSound( void );
  5.                 CSound( string szFile );
  6.                 CSound( const CSound& sound );
  7.                 ~CSound( void );
  8.  
  9.                 bool Load ( string szFile );
  10.                 void Unload ( void );
  11.  
  12.                 void SetVolume ( int iVol );
  13.                 void Play ( int iTimes = 1, int iChannel = -1 );
  14.  
  15.                 CSound& operator= ( const CSound& sound );
  16.             private:
  17.                 Mix_Chunk * m_pSound;
  18.                 bool m_bLoaded;
  19.         };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement