simpleaudioenginecocos2d-x-2.x

Why I play/preload soundEffect with error in cocos2dx (ios)?


Whether play or preload sound effect.

code here:

CocosDenshion::SimpleAudioEngine::sharedEngine()->playEffect("debug.mp3");

I will get this error: ExtAudioFileOpenURL

enter image description here

The sound file is exist in app. And file is right.

enter image description here


Solution

  • Now I fix that. It cause by I add a "All C++ Exceptions".

    enter image description here