1.1.0 • Published 3 years ago

fmod-module v1.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

I hope FMOD releases their own npm module.

QUICK GUIDE

  1. Put your .wasm file from fmod version 2.01.07 in your /assets/audio/ directory
  2. 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:

  1. 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 to return scriptDirectory+"assets/audio/"+path
  2. I changed fetch function to fetchWasm to make sure that Cordova can load wasm files in Android devices change on every update: fetch to fetchWasm
1.1.0

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago