I import sound files like so:
const soundFiles = require.context('./assets/sounds', true, /\.(aac)$/i);
This creates some urls which I can pass to musquito to play, however it won't work when run locally, because of permission errors. It does work when I create an audio object passing the path, e.g. "new Audio(soundFiles[...])".
Is there a way to make musquito compatible?
I import sound files like so:
const soundFiles = require.context('./assets/sounds', true, /\.(aac)$/i);This creates some urls which I can pass to musquito to play, however it won't work when run locally, because of permission errors. It does work when I create an audio object passing the path, e.g. "new Audio(soundFiles[...])".
Is there a way to make musquito compatible?