Skip to content

I really hope fmod releases a npm module themselves.

License

Notifications You must be signed in to change notification settings

harmhoek/fmod-module

Repository files navigation

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

About

I really hope fmod releases a npm module themselves.

Resources

License

Stars

Watchers

Forks

Packages

No packages published