-
报错信息如下:
-
Simulator: jsb: ERROR: File /Users/nantas/fireball-x/cocos2d-x-lite_20_release/cocos/scripting/js-bindings/auto/jsb_cocos2dx_audioengine_auto.cpp: Line: 250, Function: js_audioengine_AudioEngine_pause
-
Simulator: jsb: ERROR: File /Users/nantas/fireball-x/cocos2d-x-lite_20_release/cocos/scripting/js-bindings/auto/jsb_cocos2dx_audioengine_auto.cpp: Line: 585, Function: js_audioengine_AudioEngine_stop
-
通过打印audioID发现,audioID为undefined,在调用cc.audioEngine.pauseEffect或cc.audioEngine.stopEffect时参数传递错误,仔细检查参数为啥为undefined,或者加个容错处理,就能解决问题。