fmod-module
v1.1.0
Published
fmod as npm module. I really hope fmod makes a npm module themselves.
Readme
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 devicesWebAssembly.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+pathtoreturn 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:
fetchtofetchWasm
