#ifndef _UTILITY_CSOUND_H_ #define _UTILITY_CSOUND_H_ #include #include class CSound { public: CSound( int iRate = MIX_DEFAULT_FREQUENCY ); virtual ~CSound(); int Init(); int UnInit(); Mix_Chunk* PlayWav( const char* pFileName ); bool IsPlaying( int channel = 0 ); int SetVolume( int volume, int channel = 0 ); private: bool m_bIsInit; // Wave Sound Format Setting int m_iIsOpen; int m_iRate; // Frequence int m_iChannels; // Stereo & Mono Setting int m_iBuffers; // Memory Buffer Size Uint16 m_iFormat; // Format Mix_Music* m_pMusic; }; #endif