I use cocos2d-x 3.8.
I get an id from the playEffect function:
effect.id = cc.audioEngine.playEffect();
This is an object, other than stated in the documentation, where it is just an id (like its name).
When I stop this effect using
cc.audioEngine.stopEffect(effect.id);
I get no problems with HTML, but with Android following message:
jsb: ERROR: File /var/www/html/21words/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos/scripting/js-bindings/proj.android/…/auto/jsb_cocos2dx_auto.cpp: Line: 69578, Function: js_cocos2dx_SimpleAudioEngine_stopEffect
In the ccp code it seems clear to me what happens (line 69577):
ok &= jsval_to_uint32(cx, args.get(0), &arg0);
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_SimpleAudioEngine_stopEffect : Error processing arguments");
It checks the paarameter if it is a uint32, but it is an object. Which side is wrong: the js-object or the cpp uint32?

