Using SimpleAudioEngine with cocos2d-x 2.0.1

Hi,

I migrate a game created with cocos2d-x 1.0.12 to 2.0.1, but I give an error in the following code

SimpleAudioEngine::sharedEngine()->pauseBackgroundMusic();

This is the error

'SimpleAudioEngine' has not been declared


I try to use


using namespace cocosdenshion;

But it gives a compilation error, anyone know how to use SimpleAudioEngine in cocs2d-x 2.0.1?

try using,

using namespace CocosDenshion;

or

CocosDenshion::SimpleAudioEngine::sharedEngine()->pauseBackgroundMusic();

this is the way I use it, and it’s running fine for me

It worked for me, but I add the following lines in android.mk

LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static

$(call import-module,CocosDenshion/android)

thank you