cocos2d-x audio issue


HI, i want to do the music game, but i need the background music current time to do other action
and then i need detect the background music finish.

in cocos2d we can use [CDAudioManager sharedManager].backgroundMusic.currentTime get currentTime.
and then i can set the delegate to detect music finish.

but in cocos2d-x c++ how to do it? Thank you.


Cocos2d-x only wrapped SimpleAudioEngine interfaces for audio. If you want advanced features, you need to dig it more, e.g. to the android sdk then wrap the APIs you need into c++ via JNI. Refer to:
* [[How to use JNI]]