Using SimpleAudioEngine with cocos2d-x 2.0.1

Using SimpleAudioEngine with cocos2d-x 2.0.1
0.0 0



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


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;



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

LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static

$(call import-module,CocosDenshion/android)

thank you