As I wrote before, You can try that:
- go to generated/exported not-minified project folder and find c2runtime.js file
- find function that starts like: C2AudioInstance.prototype.getDuration = function (applyPlaybackRate)
- change
let ret = 0;
to
var ret = 0;
For me, that worked , and as You saw - yes, it's because of Audio update <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink"> ( as expected from update post - https://www.scirra.com/construct2/releases/r213 ... ;p trololololo )
You can also downgrade C2 to 211.2, here all works, but you also need project with that version.
(If you are wonder, audio duration function was rebuild from R211 to R213 and disposed from multiple "return" instructions for one instead.)
The other two errors:
Uncaught ReferenceError: cr_createRuntime is not defined
Uncaught ReferenceError: cr_sizeCanvas is not defined
are caused by the first one, so they will gone after modification that I wrote above.
Hey thanks for the fix. I was getting a blank screen in XDK and I tried to debug the code in ForeFox. But it didnt occur to me to change LET to VAR <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">
Now atleast I see the loading screen on the Intel XDK Emulator. I think there is still some issue, the progress bar wont move past 25-30%. Its stuck!
I wonder if I can install the previous version Copy the Audio Plugin folder. Then reinstall R213 and replace the files from R212.2?
I think that should work , rather that miss the other important fixes in this version <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">
What do you say?