标签:cocos2dx3.x c++ 音效 是否播放
SimpleAudioEngine类中加入一函数
如下
bool isEffectPlaying(unsigned int nSoundId);
bool SimpleAudioEngine::isEffectPlaying(unsigned int nSoundId) { EffectList::iterator p = sharedList().find(nSoundId); bool bRet = false; if (p != sharedList().end()) { bRet = p->second->IsPlaying(); } return bRet; }
标签:cocos2dx3.x c++ 音效 是否播放
原文地址:http://blog.csdn.net/xie1xiao1jun/article/details/41283555