cc.SimpleAudioEngine:getInstance():playMusic("Music/bgMusic.mp3", true)
ture表示循环播放 false则相反
2,停止背景音乐
cc.SimpleAudioEngine:getInstance():stopMusic()
应该是停止音乐,引擎背景音乐资源也释放了
3,暂停音乐
cc.SimpleAudioEngine:getInstance():pauseMusic()
4 恢复背景音乐
cc.SimpleAudioEngine:getInstance():resumeMusic()
还有相关音效方面的函数
cc.SimpleAudioEngine:getInstance():playEffect("fileName")
cc.SimpleAudioEngine:getInstance():pauseAllEffects() cc.SimpleAudioEngine:getInstance():resumeAllEffects()