playEffect method in native language

playEffect method in native language
0.0 0


i notice there is a method “playEffect” in when I start working on sound program on android,
it looks i can call such method in cpp,but I can’t find the declaration in native c/c++ language
i’ve check all folders named “jni” and “Cocos2dx\platform\android\jni” without any result.

can someone is kind to tell me the path or filename where such a declaration existes?





Use SimpleAudioEngine instead inside your cpp code. That wraps all the cross platform implementations of sounds, so you don’t need to use the java directly. If you’re still looking, look in the CocosDenshion folders.