-
cocos2d-x 사운드 및Pause @/Cocos2d-x2 2013. 6. 30. 20:20
1. BackgroundMusic
SimpleAudioEngine::sharedEngine()->playBackgroundMusic("bg.wav", true);
SimpleAudioEngine::sharedEngine()->stopBackgroundMusic();
SimpleAudioEngine::sharedEngine()->pauseBackgroundMusic();
SimpleAudioEngine::sharedEngine()->resumeBackgroundMusic();
SimpleAudioEngine::sharedEngine()->preloadBackgroundMusic("bg.wav");
2. Effect
SimpleAudioEngine::sharedEngine()->playEffect("effect.wav");
SimpleAudioEngine::sharedEngine()->stopAllEffects();
'Pause @ > Cocos2d-x2' 카테고리의 다른 글
cocos2d-x 프로젝트1 정리 (0) 2013.07.03 cocos2d-x 프로젝트 1 (0) 2013.07.03 cocos2d-x transition, parallaxnode (0) 2013.06.30 cocos2d-x 스케쥴update, CCSpriteBatchNode (0) 2013.06.30 cocos2d-x animation 정리 (0) 2013.06.30