#ifndef RUCtlAudioMgr_h #define RUCtlAudioMgr_h #include "cocos2d.h" #include "SimpleAudioEngine.h" #include "AudioEngine.h" #include "RUDefine.h" USING_NS_CC; using namespace std; NS_RU_BEGIN class CtlAudioMgr { public: static CtlAudioMgr* getInstance(); bool getSoundEnabled(); bool getMusicEnabled(); void setMusicEnabled(bool flag); void setSoundEnabled(bool flag); // void playEffect(const string& effect); // void playMusic(const string& music); // void stopMusic(); private: CtlAudioMgr(); ~CtlAudioMgr(); private: std::string _lastMusic; bool _musicEnabled = true; bool _soundEnabled = true; }; NS_RU_END #endif /* RUCtlAudioMgr_h */