#include "SimpleAudioEngine.h"
添加音乐和加true循环播放
if ( !SimpleAudioEngine::getInstance()->isBackgroundMusicPlaying()) {
SimpleAudioEngine::getInstance()->playBackgroundMusic("bk.mp3",true);
}
SimpleAudioEngine::getInstance()->playEffect("m1.wav");
原文链接:https://www.f2er.com/cocos2dx/344202.html