Hi all,
I am new to cocos2d-x-2.03. i followed this tutorial http://www.cocos2d-x.org/projects/cocos2d-x/wiki/Chapter_1*-*How_to_Create_a_New_cocos2d-x_project_on_multi-platforms and test the “Coos2dxSimpleGame”. And i found no music when “SimpleAudioEngine::sharedEngine()->playEffect(”pew-pew-lei.waw“);”.
Here is my code to test in HelloWorld::init():
@
CocosDenshion::SimpleAudioEngine::sharedEngine()->playEffect(“pew-pew-lei.waw”); //failed
//CocosDenshion::SimpleAudioEngine::sharedEngine()->playBackgroundMusic(“pew-pew-lei.wav”); //OK
//CocosDenshion::SimpleAudioEngine::sharedEngine()->playEffect(“background-music-aac.wav”); //OK
//CocosDenshion::SimpleAudioEngine::sharedEngine()->playBackgroundMusic(“background-music-aac.wav”, true); //OK @
Only the first line failed, i have tested in win32 and ios.
Anyone know why?
Thanks in advanced!