SimpleAudioEngine

hi,
I use SimpleAudioEngine::sharedEngine() to play the game’s effect.
when it’s playing, yeah! Effect is playing ,at this moment I callback the functions:
SimpleAudioEngine::sharedEngine()->stopAllEffects(); SimpleAudioEngine::sharedEngine()->stopBackgroundMusic(true); SimpleAudioEngine::sharedEngine()->end();

and then It throws crash.

I’m the new comer, help me ,pls.
thanks!

Platform: IOS , latest stable cocos2d-x-2.1.4

Could you show the crash log?

Perhaps its
SimpleAudioEngine::sharedEngine()->end();
that is causing the crash. try removing this line