Unity,使用FMOD进行开发,微信小游戏开发工具可以正常播放声音,但真机报错进不去
微信小游戏,使用FMOD进行开发时,Unity内、微信小游戏开发工具可以正常播放声音,但预览和真机调试都会报错,黑屏卡死,报错内容如下: 第一个报错:exception thrown: TypeError: AudioContext is not a constructor,TypeError: AudioContext is not a constructor
at 5821837 (https://usr/game.js:208:31234)
at _emscripten_asm_const_int (https://usr/game.js:208:265754)
at invoke_iii (https://usr/game.js:223:290175)
at invoke_viii (https://usr/game.js:223:291864)
at invoke_iiii (https://usr/game.js:223:290531)
at invoke_iiii (https://usr/game.js:223:290531)
at Module._main (https://usr/game.js:223:175361)
at callMain (https://usr/game.js:223:318530)
at doRun (https://usr/game.js:223:319353)
at run (https://usr/game.js:223:319525)
at runCaller (https://usr/game.js:223:318189)
at Object.removeRunDependency (https://usr/game.js:208:16546)
at 5821837 (https://usr/game.js:208:31234)
at _emscripten_asm_const_int (https://usr/game.js:208:265754)
at invoke_iii (https://usr/game.js:223:290175)
at invoke_viii (https://usr/game.js:223:291864)
at invoke_iiii (https://usr/game.js:223:290531)
at invoke_iiii (https://usr/game.js:223:290531)
at Module._main (https://usr/game.js:223:175361)
at callMain (https://usr/game.js:223:318530)
at doRun (https://usr/game.js:223:319353)
at run (https://usr/game.js:223:319525)
at runCaller (https://usr/game.js:223:318189)
at Object.removeRunDependency (https://usr/game.js:208:16546)<div class="luna-console-json luna-console-hidden"></div>
at V.formatMsg (wagame://servicewechat.com/WAGameVConsole.html:1:46398)
at new V (wagame://servicewechat.com/WAGameVConsole.html:1:43388)
at N.insertSync (wagame://servicewechat.com/WAGameVConsole.html:7:11627)
at wagame://servicewechat.com/WAGameVConsoledi
第二个报错和第三个: TypeError: Browser.mainLoop.scheduler is not a function
at Object.resume (https://usr/game.js:223:1296)
at callMain (https://usr/game.js:223:318837)
at doRun (https://usr/game.js:223:319353)
at run (https://usr/game.js:223:319525)
at runCaller (https://usr/game.js:223:318189)
at Object.removeRunDependency (https://usr/game.js:208:16546)
TypeError: Browser.mainLoop.scheduler is not a function
at Object.resume (https://usr/game.js:223:1296)
at callMain (https://usr/game.js:223:318837)
at doRun (https://usr/game.js:223:319353)
at run (https://usr/game.js:223:319525)
at runCaller (https://usr/game.js:223:318189)
at Object.removeRunDependency (https://usr/game.js:208:16546)<div class="luna-console-json luna-console-hidden"></div>
at V.formatMsg (wagame://servicewechat.com/WAGameVConsole.html:1:46398)
at new V (wagame://servicewechat.com/WAGameVConsole.html:1:43388)
at N.insertSync (wagame://servicewechat.com/WAGameVConsole.html:7:11627)
at wagame://servicewechat.com/WAGameVConsole.html:7:13092
[PLUGIN ERROR 17:23.46.110] start game fail: <TypeError: Browser.mainLoop.scheduler is not a function>
TypeError: Browser.mainLoop.scheduler is not a function
at Object.resume (https://usr/game.js:223:1296)
at callMain (https://usr/game.js:223:318837)
at doRun (https://usr/game.js:223:319353)
at run (https://usr/game.js:223:319525)
at runCaller (https://usr/game.js:223:318189)
at Object.removeRunDependency (https://usr/game.js:208:16546)
TypeError: Browser.mainLoop.scheduler is not a function
at Object.resume (https://usr/game.js:223:1296)
at callMain (https://usr/game.js:223:318837)
at doRun (https://usr/game.js:223:319353)
at run (https://usr/game.js:223:319525)
at runCaller (https://usr/game.js:223:318189)
at Object.removeRunDependency (https://usr/game.js:208:16546)<div class="luna-console-json luna-console-hidden"></div>
at V.formatMsg (wagame://servicewechat.com/WAGameVConsole.html:1:46398)
at new V (wagame://servicewechat.com/WAGameVConsole.html:1:43388)
at N.insertSync (wagame://servicewechat.com/WAGameVConsole.html:7:11627)
at wagame://servicewechat.com/WAGameVConsole