1.1.0 • Published 3 years ago
fmod-module v1.1.0
I hope FMOD releases their own npm module.
QUICK GUIDE
- Put your .wasm file from fmod version 2.01.07 in your /assets/audio/ directory
- add these codes in fmodBanks.js
window.fetchWasm = newFetchFunction //needed for fmod wasm file loading on android devices
WebAssembly.instantiateStreaming = undefined //probably needed for fmod wasm file loading on android devices
DETAILED GUIDE What I changed to get it to work:
- The wasm directory, it's hardcoded to /assets/audio/ , meaning your fmodstudio.wasm should be accessible in localhost/assets/audio/
change on every update: to
return scriptDirectory+path
toreturn scriptDirectory+"assets/audio/"+path
- I changed fetch function to fetchWasm to make sure that Cordova can load wasm files in Android devices
change on every update:
fetch
tofetchWasm