Cocos2D-X (C++): 効果音を鳴らす

Resources のなかに c.wav をいれます

C++: HelloWorldScene.h

#include "SimpleAudioEngine.h"

C++: HelloWorldScene.cpp

CocosDenshion::SimpleAudioEngine *sae = CocosDenshion::SimpleAudioEngine::sharedEngine();
sae->preloadEffect("c.wav");
sae->playEffect("c.wav");