Closed kmturley closed 1 year ago
In addition I think another flag could help:
-s EXPORT_ES6=1
Automatically puts the wrapper around javascript. Meaning that you can remove:
echo "export default Module;" >> sfizz.wasm.js
From the installation steps
When loading the site: https://sfz.tools/sfizz-webaudio/
I get a JavaScript console error:
According to this GitHub issue: https://github.com/emscripten-core/emscripten/issues/6882#issuecomment-406745898
The solution is to add the flag:
I'm not an expert at CMAKE but believe that could be added to this line: https://github.com/sfztools/sfizz-webaudio/blob/main/CMakeLists.txt#L15