mirror of https://github.com/axmolengine/axmol.git
Fix signature of Java method used in JNI
This commit is contained in:
parent
c4fe5de7a4
commit
f40fe3b028
|
@ -184,7 +184,7 @@ namespace CocosDenshion {
|
|||
int ret = 0;
|
||||
std::string fullPath = CocosDenshion::android::getFullPathWithoutAssetsPrefix(pszFilePath);
|
||||
|
||||
if (! getJNIStaticMethodInfo(methodInfo, "playEffect", "(Ljava/lang/String;Z)I")) {
|
||||
if (! getJNIStaticMethodInfo(methodInfo, "playEffect", "(Ljava/lang/String;ZFFF)I")) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -192,7 +192,8 @@ namespace CocosDenshion {
|
|||
ret = methodInfo.env->CallStaticIntMethod(methodInfo.classID,
|
||||
methodInfo.methodID,
|
||||
stringArg,
|
||||
bLoop);
|
||||
bLoop,
|
||||
pitch, pan, gain);
|
||||
methodInfo.env->DeleteLocalRef(stringArg);
|
||||
methodInfo.env->DeleteLocalRef(methodInfo.classID);
|
||||
|
||||
|
|
Loading…
Reference in New Issue